On Tue, 7 Dec 2021 14:33:40 GMT, Daniel Fuchs <dfu...@openjdk.org> wrote:
>> test/jdk/java/net/httpclient/HttpClientLocalAddrTest.java line 205: >> >>> 203: // anyAddress >>> 204: if (Boolean.getBoolean("java.net.preferIPv6Addresses")) { >>> 205: // ipv6 wildcard >> >> ::1 is the ipv6 loopback - not the ipv6 wildcard > > You may encounter some issues when testing with https and IPv6 - Michael is > working on a fix to add the loopback addresses as SNI aliases to the > SimpleSSLContext certificate: > https://bugs.openjdk.java.net/browse/JDK-8278312 You could also replace `Boolean.getBoolean("java.net.preferIPv6Addresses")` with a call to `IPSupport::preferIPv6Addresses()` ------------- PR: https://git.openjdk.java.net/jdk/pull/6690