From 8cf87d05a65f6f732660e6ff4961e93ce1821a32 Mon Sep 17 00:00:00 2001 From: kevin Date: Wed, 27 Dec 2023 17:11:51 +0800 Subject: [PATCH] add an empty line at the end of the wg.conf. --- templates/wg.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/wg.conf b/templates/wg.conf index b2e1289..3b80e0d 100644 --- a/templates/wg.conf +++ b/templates/wg.conf @@ -24,4 +24,4 @@ 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}} {{if .Client.Endpoint }}Endpoint = {{ .Client.Endpoint }}{{end}} -{{end}}{{end}} \ No newline at end of file +{{end}}{{end}}