From 0f449f64ec6faa4f9a63d0f0d9c01e1b98cc5a0b Mon Sep 17 00:00:00 2001 From: braginini Date: Mon, 10 Apr 2023 11:34:30 +0200 Subject: [PATCH] Fix NPE in windows tunnel --- iface/tun_windows.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() }