From 08c627583708fec9ebedac586696a827c6d2d591 Mon Sep 17 00:00:00 2001 From: Ioannis Dressos <96877388+idressos@users.noreply.github.com> Date: Sun, 29 Oct 2023 16:26:20 +0200 Subject: [PATCH] Add global PersistentKeepalive setting to wg.conf --- templates/wg.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/wg.conf b/templates/wg.conf index 585b0c4..9614da7 100644 --- a/templates/wg.conf +++ b/templates/wg.conf @@ -23,5 +23,6 @@ PrivateKey = {{ .serverConfig.KeyPair.PrivateKey }} PublicKey = {{ .Client.PublicKey }} {{if .Client.PresharedKey }}PresharedKey = {{ .Client.PresharedKey }}{{end}} AllowedIPs = {{$first :=true}}{{range .Client.AllocatedIPs }}{{if $first}}{{$first = false}}{{else}},{{end}}{{.}}{{end}}{{range .Client.ExtraAllowedIPs }},{{.}}{{end}}{{end}} +{{if .globalSettings.PersistentKeepalive}}PersistentKeepalive = {{ .globalSettings.PersistentKeepalive }}{{end}} {{if .Client.Endpoint }}Endpoint = {{ .Client.Endpoint }}{{end}} {{end}} \ No newline at end of file