mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-16 07:16:38 +00:00
Fix NPE in windows tunnel
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user