Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8221681 Improved IPv6 Support
  3. JDK-8223214

Inet6AddressImpl.loopbackAddress() should choose loopback address that is available

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: P3 P3
    • 13
    • 13
    • core-libs
    • None
    • b22

      Currently, Inet6AddressImpl.loopbackAddress() will unconditionally choose the IPv6 loopback address if java.net.preferIPv6Address is set to "system" or "true", else unconditionally choose the IPv4 loopback address.

      Instead it should try out both loopback addresses and return whichever one works, giving preference to IPv6 if java.net.preferIPv6Address is set to "system" or "true", else giving preference to IPv4. This way there is no need to set java.net.preferIPv6Address in an IPv6-only environment to get a valid loopback address.

            aeubanks Arthur Eubanks
            aeubanks Arthur Eubanks
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: