From c9c46e8757fd6e32187c88451a95c4dc04bd45aa Mon Sep 17 00:00:00 2001 From: Paul Donald Date: Sat, 2 Dec 2023 20:50:41 +0100 Subject: [PATCH] Make Interface PostUp setting optional in wg.conf template. --- templates/wg.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/wg.conf b/templates/wg.conf index 81893a8..0b0f09a 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 }}