]> git.ipfire.org Git - thirdparty/wireguard-tools.git/commit
wg-quick: android: delay setting users until end
authorJason A. Donenfeld <Jason@zx2c4.com>
Thu, 31 May 2018 14:38:06 +0000 (16:38 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Thu, 31 May 2018 14:38:08 +0000 (16:38 +0200)
commit2044bb026d7af480bc00e7849803f0229641e82a
tree78e5214231913f384337d3a47fe1a79d980629c7
parent2bca99893f711625076aa58463a1b7531df0e0ae
wg-quick: android: delay setting users until end

`ndc users add` eventually invokes SOCK_DESTROY on user sockets, causing
them to reconnect. By delaying this until after routes are set, we
ensure that the sockets reconnect using the tunnel, rather than the old
route.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
src/wg-quick/android.c