Revert "Only consider /16 network when using direct mode"

This reverts commit 189321f09d.
This commit is contained in:
braginini
2023-04-08 17:38:13 +02:00
parent 189321f09d
commit 1c071e4981

View File

@@ -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
}