Corrects disable IPv6 properties variable name (StackProperties) and its use (HostCandidateHarvester) as reported by Daniel Pocock.

This commit is contained in:
chenzo 2012-07-09 08:26:28 +00:00
parent 25574cea72
commit 5f278f72e4
2 changed files with 2 additions and 2 deletions

View File

@ -128,7 +128,7 @@ public class StackProperties
/**
* The name of the property used to disabled IPv6 support.
*/
public static final String ENABLE_IPv6 = "org.ice4j.ipv6.DISABLED";
public static final String DISABLE_IPv6 = "org.ice4j.ipv6.DISABLED";
/**
* Returns the String value of the specified property (minus all

View File

@ -68,7 +68,7 @@ public class HostCandidateHarvester
= NetworkInterface.getNetworkInterfaces();
boolean isIPv6Disabled = StackProperties.getBoolean(
"org.ice4j.ipv6.DISABLED",
StackProperties.DISABLE_IPv6,
false);
if(transport != Transport.UDP && transport != Transport.TCP)