This commit is contained in:
Christoph
2026-12-03 18:48:02 +01:00
parent d5a74a10ac
commit 141eb838bb
7 changed files with 25 additions and 77 deletions
@@ -17,9 +17,9 @@
# Core settings
PrivateKey = {{ .Interface.KeyPair.PrivateKey }}
{{- if .Interface.AmneziaWG }}
{{ .Interface.AmneziaWG.ConfigLines -}}
{{- end }}
{{- with .Interface.AmneziaWG }}
{{ range $key, $value := . }}{{ $key }} = {{ $value }}
{{ end }}{{ end }}
Address = {{ CidrsToString .Interface.Addresses }}
# Misc. settings (optional)
@@ -23,9 +23,9 @@
# Core settings
PrivateKey = {{ .Peer.Interface.KeyPair.PrivateKey }}
{{- if .Peer.Interface.AmneziaWG }}
{{ .Peer.Interface.AmneziaWG.ConfigLines -}}
{{- end }}
{{- with .Peer.Interface.AmneziaWG }}
{{ range $key, $value := . }}{{ $key }} = {{ $value }}
{{ end }}{{ end }}
{{- if eq .Style "wgquick"}}
Address = {{ CidrsToString .Peer.Interface.Addresses }}
{{- end}}