diff --git a/client/internal/peer/conn.go b/client/internal/peer/conn.go index abb5fc458..a02ab7d9c 100644 --- a/client/internal/peer/conn.go +++ b/client/internal/peer/conn.go @@ -458,7 +458,7 @@ func (conn *Conn) onWorkerICEStateDisconnected(newState ConnStatus) { conn.log.Tracef("ICE connection state changed to %s", newState) // switch back to relay connection - if conn.endpointRelay != nil { + if conn.endpointRelay != nil && conn.currentConnPriority != connPriorityRelay { conn.log.Debugf("ICE disconnected, set Relay to active connection") err := conn.configureWGEndpoint(conn.endpointRelay) if err != nil {