Let's improve IPv6 support
Martin Buchholz
martinrb at google.com
Mon Mar 20 16:11:58 UTC 2017
On Mon, Mar 20, 2017 at 7:14 AM, Chris Hegarty <chris.hegarty at oracle.com>
wrote:
>
>> I should point out that the current batch of changes are focused on
>> support for systems where 127.0.0.1 doesn't exist, which is relatively
>> straightforward and unexciting.
>>
>
> Sorry, what does this mean. IPv6-only environment with ::1, or no
> loopback mechanism at all?
A system where 127.0.0.1 does not exist (in fact IPv4 is completely
absent), and "localhost" resolves to ::1.
A simple but pervasive change to global replace testing code via:
s/"127.0.0.1"/ InetAddress.getLoopbackAddress().getHostAddress()/g
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/net-dev/attachments/20170320/b2d42b6c/attachment.html>
More information about the net-dev
mailing list