]> git.ipfire.org Git - thirdparty/wireguard-go.git/commit
tun: linux: account for interface removal from outside
authorJason A. Donenfeld <Jason@zx2c4.com>
Thu, 20 May 2021 16:26:01 +0000 (18:26 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Thu, 20 May 2021 16:26:01 +0000 (18:26 +0200)
commit99e8b4ba605538b64c693c4056904f34810c3938
tree87bc010144d676f7d74d838e3f475876ffa808fa
parentbd83f0ac993bc5bee0b0f96c74d24cab142ba385
tun: linux: account for interface removal from outside

On Linux we can run `ip link del wg0`, in which case the fd becomes
stale, and we should exit. Since this is an intentional action, don't
treat it as an error.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
device/send.go
tun/tun_linux.go