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 }}