diff --git a/client/internal/peer/conn.go b/client/internal/peer/conn.go index eb7ff9db4..81f7457f1 100644 --- a/client/internal/peer/conn.go +++ b/client/internal/peer/conn.go @@ -340,7 +340,7 @@ func shouldUseProxy(pair *ice.CandidatePair, userspaceBind bool) bool { return false } - if isHostCandidateWithPrivateIP(pair.Local) && isHostCandidateWithPrivateIP(pair.Remote) && isSameNetworkPrefix(pair) { + if isHostCandidateWithPrivateIP(pair.Local) && isHostCandidateWithPrivateIP(pair.Remote) && !isSameNetworkPrefix(pair) { return false }