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