Make Interface Table setting optional in wg.conf template.

This commit is contained in:
Paul Donald 2023-12-02 20:51:53 +01:00
parent d5558fcf58
commit 4e7250f192

View file

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