mirror of
https://github.com/netbirdio/netbird.git
synced 2025-06-21 18:22:37 +02:00
Fix body close
This commit is contained in:
parent
c3e8187a47
commit
2d7e797e08
@ -28,8 +28,9 @@ func Dial(address string) (net.Conn, error) {
|
|||||||
log.Errorf("failed to dial to Relay server '%s': %s", wsURL, err)
|
log.Errorf("failed to dial to Relay server '%s': %s", wsURL, err)
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
if resp.Body != nil {
|
||||||
_ = resp.Body.Close()
|
_ = resp.Body.Close()
|
||||||
|
}
|
||||||
conn := NewConn(wsConn)
|
conn := NewConn(wsConn)
|
||||||
return conn, nil
|
return conn, nil
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user