ice4j
ice4j copied to clipboard
Contradicting candidate preferences
trafficstars
According to the comment at https://github.com/jitsi/ice4j/blob/28a23e1859b4f7383cb014642a683c5fb482bf36/src/main/java/org/ice4j/ice/Candidate.java#L558
, IPv6 is preferred to IPv4, this is indicated using preference values 30,40 > 10.
But the comment says, that link local is preferred to global. This is reflected by the value for link local, 30, being larger than the value for global, 40.
Shouldn't these two values be the other way round?
what version of JAVA are you running? Java SE 17 and beyond fixes the IPv6 issues. Java SE 7 or prior version failed IPv6 in many situations.