mirror of
https://github.com/h44z/wg-portal.git
synced 2026-12-05 19:56:06 +01:00
cleanup
This commit is contained in:
@@ -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}}
|
||||
|
||||
Reference in New Issue
Block a user