From 2cdd50b4cba8d7af8858441f6ebd5bfc395240a1 Mon Sep 17 00:00:00 2001 From: runbmp <9081154+runbmp@users.noreply.github.com> Date: Tue, 12 Sep 2023 14:30:46 -0600 Subject: [PATCH] Update wg.conf to print FwMark if it exists --- templates/wg.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/wg.conf b/templates/wg.conf index 81893a8..45d1b34 100644 --- a/templates/wg.conf +++ b/templates/wg.conf @@ -7,6 +7,7 @@ Address = {{$first :=true}}{{range .serverConfig.Interface.Addresses }}{{if $first}}{{$first = false}}{{else}},{{end}}{{.}}{{end}} ListenPort = {{ .serverConfig.Interface.ListenPort }} PrivateKey = {{ .serverConfig.KeyPair.PrivateKey }} +{{if .globalSettings.FirewallMark}}FwMark = {{ .globalSettings.FirewallMark}}{{end}} {{if .globalSettings.MTU}}MTU = {{ .globalSettings.MTU }}{{end}} PostUp = {{ .serverConfig.Interface.PostUp }} PostDown = {{ .serverConfig.Interface.PostDown }}