mirror of
https://git.zx2c4.com/wireguard-go
synced 2026-08-16 20:26:42 +00:00
Basic tun name behaviour implemented; now figuring out why it won't close
This commit is contained in:
@@ -439,8 +439,8 @@ func (tun *nativeTun) Close() error {
|
||||
err4 = renameTun(tun.name,tun.origName)
|
||||
}
|
||||
|
||||
err1 := tun.rwcancel.Cancel()
|
||||
err2 := tun.fd.Close()
|
||||
err1 := tun.rwcancel.Cancel()
|
||||
if tun.routeSocket != -1 {
|
||||
unix.Shutdown(tun.routeSocket, unix.SHUT_RDWR)
|
||||
err4 = unix.Close(tun.routeSocket)
|
||||
|
||||
Reference in New Issue
Block a user