added Post Up and Post Down configuration to server interface

This commit is contained in:
Jaryl Chng 2020-08-22 19:56:53 +08:00
parent cd7f6e500a
commit 80cdb768a6
No known key found for this signature in database
GPG key ID: A7174FB4C337FA37
4 changed files with 22 additions and 2 deletions

View file

@ -8,6 +8,8 @@ Address = {{$first :=true}}{{range .serverConfig.Interface.Addresses }}{{if $fir
ListenPort = {{ .serverConfig.Interface.ListenPort }}
PrivateKey = {{ .serverConfig.KeyPair.PrivateKey }}
MTU = {{ .globalSettings.MTU }}
PostUp = {{ .serverConfig.Interface.PostUp }}
PostDown = {{ .serverConfig.Interface.PostDown }}
{{range .clientDataList}}{{if eq .Client.Enabled true}}
# ID: {{ .Client.ID }}