From 4e7250f1920a0d1edf612c9e724fe3c10f8e59a9 Mon Sep 17 00:00:00 2001 From: Paul Donald Date: Sat, 2 Dec 2023 20:51:53 +0100 Subject: [PATCH] Make Interface Table 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 7078c5b..2e67844 100644 --- a/templates/wg.conf +++ b/templates/wg.conf @@ -10,7 +10,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 }}