Integrated: 8279329: Remove hardcoded IPv4 available policy on Windows
Masanori Yano
myano at openjdk.java.net
Tue Feb 8 08:35:08 UTC 2022
On Wed, 2 Feb 2022 08:31:08 GMT, Masanori Yano <myano at 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 pull request has now been integrated.
Changeset: f2a9627c
Author: Masanori Yano <myano at openjdk.org>
Committer: Alan Bateman <alanb at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/f2a9627c05f9ef82eb83d8c1b9d4209bf42e7d8d
Stats: 6 lines in 1 file changed: 5 ins; 0 del; 1 mod
8279329: Remove hardcoded IPv4 available policy on Windows
Reviewed-by: djelinski, alanb, dfuchs, aefimov
-------------
PR: https://git.openjdk.java.net/jdk/pull/7317
More information about the net-dev
mailing list