< prev index next >

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

Print this page

        

@@ -306,11 +306,11 @@
      */
     static {
         String str = java.security.AccessController.doPrivileged(
                 new GetPropertyAction("java.net.preferIPv6Addresses"));
         if (str == null) {
-            preferIPv6Address = PREFER_IPV4_VALUE;
+            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 >