diff --git a/iface/tun_windows.go b/iface/tun_windows.go index a69e36bc4..49a3628f5 100644 --- a/iface/tun_windows.go +++ b/iface/tun_windows.go @@ -85,7 +85,7 @@ func (c *tunDevice) DeviceName() string { func (c *tunDevice) Close() error { var err1, err2 error - if c.netInterface == nil { + if c.netInterface != nil { err1 = c.netInterface.Close() }