From 7ed84f553787097dfd89abdecd1ca91ceedf0a40 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 faeed10..593a46e 100644 --- a/templates/wg.conf +++ b/templates/wg.conf @@ -12,7 +12,7 @@ PrivateKey = {{ .serverConfig.KeyPair.PrivateKey }} {{if .serverConfig.Interface.PostUp }}PostUp = {{ .serverConfig.Interface.PostUp }}{{end}} {{if .serverConfig.Interface.PreDown }}PreDown = {{ .serverConfig.Interface.PreDown }}{{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 }}