diff --git a/templates/wg.conf b/templates/wg.conf index 9269912..2112a0c 100644 --- a/templates/wg.conf +++ b/templates/wg.conf @@ -22,6 +22,6 @@ Table = {{ .globalSettings.Table }} [Peer] PublicKey = {{ .Client.PublicKey }} {{if .Client.PresharedKey }}PresharedKey = {{ .Client.PresharedKey }}{{end}} -AllowedIPs = {{$first :=true}}{{range .Client.AllocatedIPs }}{{if $first}}{{$first = false}}{{else}},{{end}}{{.}}{{end}}{{range .Client.ExtraAllowedIPs }},{{.}}{{end}}{{end}} +AllowedIPs = {{$first :=true}}{{range .Client.AllocatedIPs }}{{if $first}}{{$first = false}}{{else}},{{end}}{{.}}{{end}}{{range .Client.ExtraAllowedIPs }},{{.}}{{end}} {{if .Client.Endpoint }}Endpoint = {{ .Client.Endpoint }}{{end}} -{{end}} +{{end}}{{end}}