diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-08-04 00:34:31 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-08-04 00:35:25 +0200 |
commit | cc7dba6e778c177f766184737a3001cedb095e47 (patch) | |
tree | c7e774669f1b831849dedb49a669a7775a75e8b3 /conf | |
parent | version: bump (diff) | |
download | wireguard-windows-cc7dba6e778c177f766184737a3001cedb095e47.tar.xz wireguard-windows-cc7dba6e778c177f766184737a3001cedb095e47.zip |
conf: remove workaround for erroneous hasendpoint flag
This reverts commit 22be5b26d95f8d8c32e5bf7dbca214f799cbc103.
Fixed for wgnt 0.3.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'conf')
-rw-r--r-- | conf/parser.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/conf/parser.go b/conf/parser.go index d3073464..2a1c0894 100644 --- a/conf/parser.go +++ b/conf/parser.go @@ -559,7 +559,7 @@ func FromDriverConfiguration(interfaze *driver.Interface, existingConfig *Config if p.Flags&driver.PeerHasPresharedKey != 0 { peer.PresharedKey = p.PresharedKey } - if p.Flags&driver.PeerHasEndpoint != 0 && p.Endpoint.Family != 0 { + if p.Flags&driver.PeerHasEndpoint != 0 { peer.Endpoint.Port = p.Endpoint.Port() peer.Endpoint.Host = p.Endpoint.IP().String() } |