]> git.ipfire.org Git - thirdparty/wireguard-go.git/commit
tun: return a better error message if /dev/net/tun doesn't exist
authorBrad Fitzpatrick <bradfitz@tailscale.com>
Wed, 18 Mar 2020 20:23:00 +0000 (13:23 -0700)
committerJason A. Donenfeld <Jason@zx2c4.com>
Sat, 2 May 2020 07:50:47 +0000 (01:50 -0600)
commit2fb0a712f0ca2f9a922cdc4f1f47b88c3ee70048
treed78290c8787e3e12936a342ea384a0b6acf98c76
parentf2c6faad44fa70cdc8ef80385ca9826bbf0468d9
tun: return a better error message if /dev/net/tun doesn't exist

It was just returning "no such file or directory" (the String of the
syscall.Errno returned by CreateTUN).

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
tun/tun_linux.go