mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-23 13:59:09 +02: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 {
|
func (c *tunDevice) Close() error {
|
||||||
var err1, err2 error
|
var err1, err2 error
|
||||||
if c.netInterface == nil {
|
if c.netInterface != nil {
|
||||||
err1 = c.netInterface.Close()
|
err1 = c.netInterface.Close()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user