< prev index next >

src/java.base/share/classes/java/net/InetAddress.java

Print this page

        

*** 306,316 **** */ static { String str = java.security.AccessController.doPrivileged( new GetPropertyAction("java.net.preferIPv6Addresses")); if (str == null) { ! preferIPv6Address = PREFER_IPV4_VALUE; } else if (str.equalsIgnoreCase("true")) { preferIPv6Address = PREFER_IPV6_VALUE; } else if (str.equalsIgnoreCase("false")) { preferIPv6Address = PREFER_IPV4_VALUE; } else if (str.equalsIgnoreCase("system")) { --- 306,316 ---- */ static { String str = java.security.AccessController.doPrivileged( new GetPropertyAction("java.net.preferIPv6Addresses")); if (str == null) { ! preferIPv6Address = PREFER_IPV6_VALUE; } else if (str.equalsIgnoreCase("true")) { preferIPv6Address = PREFER_IPV6_VALUE; } else if (str.equalsIgnoreCase("false")) { preferIPv6Address = PREFER_IPV4_VALUE; } else if (str.equalsIgnoreCase("system")) {
< prev index next >