add friendly_name param

This commit is contained in:
kadet77rus 2024-09-27 19:41:58 +03:00
parent 2fdafd34ca
commit dd8f4742e7
6 changed files with 27 additions and 7 deletions

View file

@ -25,6 +25,7 @@ Table = {{ .globalSettings.Table }}
# Notes:
# {{ .Client.AdditionalNotes }}{{end}}
[Peer]
# friendly_name = {{ .Client.FriendlyName }}
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}}