fix: Fix gathering ipv6 addresses (broken in #214).

This commit is contained in:
Boris Grozev 2022-01-05 12:46:27 -06:00 committed by bgrozev
parent ddfc498d0b
commit 86f1eaede2

View File

@ -342,7 +342,7 @@ public class HostCandidateHarvester
} }
foundAtLeastOneUsableAddress = true; foundAtLeastOneUsableAddress = true;
if ((addr instanceof Inet4Address) || !config.useIpv6()) if ((addr instanceof Inet4Address) || config.useIpv6())
{ {
IceSocketWrapper sock = null; IceSocketWrapper sock = null;
try try