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