diff --git a/templates/wg.conf b/templates/wg.conf index 8268e4e..9a3360a 100644 --- a/templates/wg.conf +++ b/templates/wg.conf @@ -8,7 +8,7 @@ Address = {{$first :=true}}{{range .serverConfig.Interface.Addresses }}{{if $fir ListenPort = {{ .serverConfig.Interface.ListenPort }} PrivateKey = {{ .serverConfig.KeyPair.PrivateKey }} {{if .globalSettings.MTU}}MTU = {{ .globalSettings.MTU }}{{end}} -PostUp = {{ .serverConfig.Interface.PostUp }} +{{if .serverConfig.Interface.PostUp }}PostUp = {{ .serverConfig.Interface.PostUp }}{{end}} PostDown = {{ .serverConfig.Interface.PostDown }} Table = {{ .globalSettings.Table }}