This commit is contained in:
kamhung
2015-12-03 12:54:14 +08:00
parent a211a18bc4
commit d5a2bacbb5

View File

@@ -93,7 +93,8 @@ public class SocksRunner implements Runnable {
buffer.get(bytes);
remoteAddress = new InetSocketAddress((addrtype == 0x0003) ? InetAddress.getByName(new String(bytes)) : InetAddress.getByAddress(bytes), buffer.getChar());
} catch (UnknownHostException e) {
throw new RuntimeException(e);
failed(e, attachment);
return;
}
try {
remoteChannel = AsyncConnection.create("TCP", remoteAddress, 6, 6);