]> git.ipfire.org Git - thirdparty/wireguard-apple.git/commit
wireguard-go-bridge: account for network changes
authorJason A. Donenfeld <Jason@zx2c4.com>
Fri, 7 Dec 2018 20:47:19 +0000 (21:47 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Fri, 7 Dec 2018 20:50:19 +0000 (21:50 +0100)
commitddccd6da4ce33fc5ea1710955df905adc59f6188
tree75052531b3a9abc0311e4580929f2707acaf3e25
parentaa0b28843659e4a762c181a12ce37597a0f58d9e
wireguard-go-bridge: account for network changes

Everytime the network changes, we need to recreate the UDP socket,
because the ephemeral listen port is tied to the old physical interface.
As well, we need to re-set the IP addresses for each endpoint, so that
they're passed to getaddrinfo and are then resolved using DNS46.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
wireguard-go-bridge/src/api-ios.go