From 86f1eaede26e8829b1a021977a17b08c94735cfd Mon Sep 17 00:00:00 2001 From: Boris Grozev Date: Wed, 5 Jan 2022 12:46:27 -0600 Subject: [PATCH] fix: Fix gathering ipv6 addresses (broken in #214). --- src/main/java/org/ice4j/ice/harvest/HostCandidateHarvester.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/ice4j/ice/harvest/HostCandidateHarvester.java b/src/main/java/org/ice4j/ice/harvest/HostCandidateHarvester.java index 41d1609..8f3b052 100644 --- a/src/main/java/org/ice4j/ice/harvest/HostCandidateHarvester.java +++ b/src/main/java/org/ice4j/ice/harvest/HostCandidateHarvester.java @@ -342,7 +342,7 @@ public class HostCandidateHarvester } foundAtLeastOneUsableAddress = true; - if ((addr instanceof Inet4Address) || !config.useIpv6()) + if ((addr instanceof Inet4Address) || config.useIpv6()) { IceSocketWrapper sock = null; try