On Wed, 2 Feb 2022 12:32:13 GMT, Alan Bateman <al...@openjdk.org> wrote:
>> I added socket connection check same as IPv6_supported(). >> Before this fix, when IPv4 is uninstalled (called `netsh interface ipv4 >> uninstall`), and set property `-Djava.net.preferIPv4Stack=true`, >> java.net.InetAddress.PLATFORM_LOOKUP_POLICY.characteristics is always set to >> 1(IPv4), because IPv4_supported() always returns TRUE. After applied this >> fix, java.net.InetAddress.PLATFORM_LOOKUP_POLICY.characteristics is set to >> 2(IPv6). >> It looks fine that IPv4_supported() returns FALSE. >> Would you review this fix? > > This looks okay although I assume just one part of the changes need to work > in an IPv6-only environment. @AlanBateman @dfuch @AlekseiEfimov Could someone please commit this PR as a sponsor? ------------- PR: https://git.openjdk.java.net/jdk/pull/7317