aboutsummaryrefslogtreecommitdiffstats
path: root/tun/tun_dragonfly.go
diff options
context:
space:
mode:
Diffstat (limited to 'tun/tun_dragonfly.go')
-rw-r--r--tun/tun_dragonfly.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tun/tun_dragonfly.go b/tun/tun_dragonfly.go
index 5ad7097..6d9608b 100644
--- a/tun/tun_dragonfly.go
+++ b/tun/tun_dragonfly.go
@@ -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)