WireGuard / wgctrl-go

Package wgctrl enables control of WireGuard interfaces on multiple platforms.
https://godoc.org/golang.zx2c4.com/wireguard/wgctrl
MIT License
727 stars 85 forks source link

internal/wglinux: gracefully degrade if kernel implementation not ava… #48

Closed mdlayher closed 5 years ago

mdlayher commented 5 years ago

…ilable

This is a bit friendlier. Before/after:

root@unifi:~# ./wgctrl
2019/05/15 17:05:33 failed to open wgctrl: netlink receive: no such file or directory
root@unifi:~# ./wgctrl 
root@unifi:~# echo $?
0