diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-03-03 11:57:26 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-03-05 16:05:13 -0700 |
commit | 77b095ba7a66cdc8858b16659f4eac25b4eb9138 (patch) | |
tree | 8f72464524c2123d7ebce8b8650628f28028ec33 /conf | |
parent | mod: bump (diff) | |
download | wireguard-windows-77b095ba7a66cdc8858b16659f4eac25b4eb9138.tar.xz wireguard-windows-77b095ba7a66cdc8858b16659f4eac25b4eb9138.zip |
conf: merge {Pre,Post}{Up,Down} from uapi
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'conf')
-rw-r--r-- | conf/parser.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/conf/parser.go b/conf/parser.go index 20010885..bd08ee6c 100644 --- a/conf/parser.go +++ b/conf/parser.go @@ -378,6 +378,10 @@ func FromUAPI(reader io.Reader, existingConfig *Config) (*Config, error) { DNS: existingConfig.Interface.DNS, DNSSearch: existingConfig.Interface.DNSSearch, MTU: existingConfig.Interface.MTU, + PreUp: existingConfig.Interface.PreUp, + PostUp: existingConfig.Interface.PostUp, + PreDown: existingConfig.Interface.PreDown, + PostDown: existingConfig.Interface.PostDown, }, } var peer *Peer |