Add workaround for connection problems with IPv6 link-local addresses and jdk < 7. See #267

This commit is contained in:
Norman Maurer 2012-04-17 14:16:37 +02:00
parent 2db3e59a6c
commit 02dc9ea8c1

View File

@ -35,7 +35,7 @@ public final class SocketUtil {
* *
*/ */
public static InetSocketAddress stripZoneId(InetSocketAddress socketAddress) throws UnknownHostException { public static InetSocketAddress stripZoneId(InetSocketAddress socketAddress) throws UnknownHostException {
return new InetSocketAddress(socketAddress.getAddress(), socketAddress.getPort()); return new InetSocketAddress(stripZoneId(socketAddress.getAddress()), socketAddress.getPort());
} }
/** /**