On Wed, 20 Sep 2023 00:18:59 GMT, Alex Menkov <amen...@openjdk.org> wrote:

> I took some time to understand what this code for. I think the condition is 
> not correct. it should be
> 
> ```
> if (!allowOnlyIPv4) {
> ```
> 
> allowOnlyIPv4 (reflects "java.net.preferIPv4Stack" sys.prop) means that only 
> IPv4 connections are allowed (even if IPv6 available)

I have tentatively updated it to do that

-------------

PR Comment: https://git.openjdk.org/jdk/pull/15796#issuecomment-1728070761

Reply via email to