Add global PersistentKeepalive setting to wg.conf

This commit is contained in:
Ioannis Dressos 2023-10-29 16:26:20 +02:00 committed by GitHub
parent ffb8df8de4
commit 08c6275837
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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