From ffb8df8de401448628aa4b0355f68fd19626c13e Mon Sep 17 00:00:00 2001 From: Ioannis Dressos <96877388+idressos@users.noreply.github.com> Date: Sun, 29 Oct 2023 16:22:45 +0200 Subject: [PATCH] Make interface Table setting optional in wg.conf --- templates/wg.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/wg.conf b/templates/wg.conf index b333217..585b0c4 100644 --- a/templates/wg.conf +++ b/templates/wg.conf @@ -11,7 +11,7 @@ PrivateKey = {{ .serverConfig.KeyPair.PrivateKey }} {{if .globalSettings.MTU}}MTU = {{ .globalSettings.MTU }}{{end}} {{if .serverConfig.Interface.PostUp }}PostUp = {{ .serverConfig.Interface.PostUp }}{{end}} {{if .serverConfig.Interface.PostDown }}PostDown = {{ .serverConfig.Interface.PostDown }}{{end}} -Table = {{ .globalSettings.Table }} +{{if .globalSettings.Table}}Table = {{ .globalSettings.Table }}{{end}} {{range .clientDataList}}{{if eq .Client.Enabled true}} # ID: {{ .Client.ID }}