RFR: 8209137: Add ability to bind to specific local address to HTTP client
Daniel Fuchs
dfuchs at openjdk.java.net
Fri Dec 10 09:34:47 UTC 2021
On Tue, 7 Dec 2021 14:33:40 GMT, Daniel Fuchs <dfuchs at 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
More information about the net-dev
mailing list