RFR: 7100957 : Java doesn't correctly handle the SOCKS protocol when used over IPv6
Dimitar Mavrodiev
dmavrodiev at gmail.com
Fri Jan 3 03:04:18 PST 2014
Greetings all,
I've fixed this and created a test to cover it, is there a sponsor who
could push this through? Here's a link to the webrev
https://googledrive.com/host/0B2CI6Ih--1t5bVVwbVlBRmpVMDg/index.html.
It's a simple fix that correctly consumes the bytes from a SOCKS reply
which represent an IPv6 address or a domain name. I also had to fix
SocksServer as it was not correctly constructing a String representation of
an IPv6 address from byte[].
I didn't find it necessary to cover the case of DOMAIN_NAME in the test as
name resolution happens locally and not on the SOCKS server, which is
perhaps worth another fix.
Best,
Dimitar Mavrodiev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/net-dev/attachments/20140103/3569cd93/attachment.html
More information about the net-dev
mailing list