From 1c071e4981865d583f88e15f67e687ba1948d975 Mon Sep 17 00:00:00 2001 From: braginini Date: Sat, 8 Apr 2023 17:38:13 +0200 Subject: [PATCH] Revert "Only consider /16 network when using direct mode" This reverts commit 189321f09d62f85e5363c8491f705f4bf53bff51. --- client/internal/peer/conn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/internal/peer/conn.go b/client/internal/peer/conn.go index 81f7457f1..eb7ff9db4 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 }