From 1bd68a523b8216fad5df15b29f281a342d68eaa3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Papp?= Date: Fri, 10 Apr 2026 12:28:16 +0200 Subject: [PATCH] [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. --- client/internal/peer/conn.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/internal/peer/conn.go b/client/internal/peer/conn.go index 741c4d0af..4d2887b28 100644 --- a/client/internal/peer/conn.go +++ b/client/internal/peer/conn.go @@ -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