🎨配置文件的初始化
This commit is contained in:
@@ -1,9 +1,18 @@
|
||||
[Interface]
|
||||
Address = {{ .Address }}
|
||||
ListenPort = {{ .ListenPort }}
|
||||
PrivateKey = {{ .PrivateKey }}
|
||||
MTU = {{ .MTU }}
|
||||
PostUp = {{ .PostUp }}
|
||||
PreDown = {{ .PreDown }}
|
||||
PostDown = {{ .PostDown }}
|
||||
Table = {{ .Table }}
|
||||
Address = {{ .Server.Address }}
|
||||
ListenPort = {{ .Server.ListenPort }}
|
||||
PrivateKey = {{ .Server.PrivateKey }}
|
||||
MTU = {{ .Server.MTU }}
|
||||
PostUp = {{ .Server.PostUp }}
|
||||
PreDown = {{ .Server.PreDown }}
|
||||
PostDown = {{ .Server.PostDown }}
|
||||
Table = {{ .Server.Table }}
|
||||
|
||||
{{ range .Clients }}
|
||||
[Peer]
|
||||
PublicKey = {{ .Client.PublicKey }}
|
||||
PresharedKey = {{ .Client.PresharedKey }}
|
||||
AllowedIPs = {{ .Client.AllowedIPs }}
|
||||
PersistentKeepalive = {{ .Client.PersistentKeepalive }}
|
||||
Endpoint = {{ .Client.Endpoint }}
|
||||
{{ end }}
|
Reference in New Issue
Block a user