mirror of
https://github.com/ngoduykhanh/wireguard-ui
synced 2024-05-28 03:22:39 +02:00
Add global PersistentKeepalive setting to wg.conf
This commit is contained in:
parent
ffb8df8de4
commit
08c6275837
|
@ -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}}
|
Loading…
Reference in a new issue