mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-24 19:26:39 +00:00
[client] Add relay-only fallback check when ICE is unavailable
Ensure the relay connection is supported with the peer when ICE is disabled to prevent connectivity issues.
This commit is contained in:
@@ -737,6 +737,11 @@ func (conn *Conn) isConnectedOnAllWay() (connected bool) {
|
|||||||
if conn.statusICE.Get() == worker.StatusDisconnected && !conn.workerICE.InProgress() {
|
if conn.statusICE.Get() == worker.StatusDisconnected && !conn.workerICE.InProgress() {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
// ICE is not available, so relay is the only possible transport
|
||||||
|
if !conn.workerRelay.IsRelayConnectionSupportedWithPeer() {
|
||||||
|
return false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// If relay is supported with peer, it must also be connected
|
// If relay is supported with peer, it must also be connected
|
||||||
|
|||||||
Reference in New Issue
Block a user