[ipv6] RFR: 8223737: HostsFileNameService doesn't handle IPv6 literal addresses correctly

Arthur Eubanks aeubanks at google.com
Sat May 11 00:17:41 UTC 2019


Bug: https://bugs.openjdk.java.net/browse/JDK-8223737
Webrev: http://cr.openjdk.java.net/~aeubanks/8223737/webrev.00/index.html

HostsFileNameService doesn't handle IPv6 literal addresses correctly.
For example, ::1 and 0:0:0:0:0:0:0:1 should yield the same output.

Rather than comparing address strings, compare the address byte arrays.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/net-dev/attachments/20190510/324358fa/attachment-0001.html>


More information about the net-dev mailing list