diff --git a/templates/wg.conf b/templates/wg.conf index 9a3360a..7078c5b 100644 --- a/templates/wg.conf +++ b/templates/wg.conf @@ -9,7 +9,7 @@ ListenPort = {{ .serverConfig.Interface.ListenPort }} PrivateKey = {{ .serverConfig.KeyPair.PrivateKey }} {{if .globalSettings.MTU}}MTU = {{ .globalSettings.MTU }}{{end}} {{if .serverConfig.Interface.PostUp }}PostUp = {{ .serverConfig.Interface.PostUp }}{{end}} -PostDown = {{ .serverConfig.Interface.PostDown }} +{{if .serverConfig.Interface.PostDown }}PostDown = {{ .serverConfig.Interface.PostDown }}{{end}} Table = {{ .globalSettings.Table }} {{range .clientDataList}}{{if eq .Client.Enabled true}}