mirror of
https://github.com/netbirdio/netbird.git
synced 2025-06-21 10:18:50 +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)
|
||||
return nil, err
|
||||
}
|
||||
if resp.Body != nil {
|
||||
_ = resp.Body.Close()
|
||||
|
||||
}
|
||||
conn := NewConn(wsConn)
|
||||
return conn, nil
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user