diff --git a/templates/wg.conf b/templates/wg.conf index 2e67844..8ef7bd5 100644 --- a/templates/wg.conf +++ b/templates/wg.conf @@ -22,4 +22,5 @@ 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}} +{{if $.globalSettings.PersistentKeepalive}}PersistentKeepalive = {{ $.globalSettings.PersistentKeepalive }}{{end}} {{end}}{{end}}