[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:
Zoltán Papp
2026-04-10 12:28:16 +02:00
parent 2734a3356e
commit 1bd68a523b

View File

@@ -737,6 +737,11 @@ func (conn *Conn) isConnectedOnAllWay() (connected bool) {
if conn.statusICE.Get() == worker.StatusDisconnected && !conn.workerICE.InProgress() {
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