From d5a2bacbb5d5064da8fb7dc3bd120944a9b00e65 Mon Sep 17 00:00:00 2001 From: kamhung <22250530@qq.com> Date: Thu, 3 Dec 2015 12:54:14 +0800 Subject: [PATCH] --- src-plugin/com/wentch/redkale/net/socks/SocksRunner.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src-plugin/com/wentch/redkale/net/socks/SocksRunner.java b/src-plugin/com/wentch/redkale/net/socks/SocksRunner.java index 1132c5a03..9470f47ff 100644 --- a/src-plugin/com/wentch/redkale/net/socks/SocksRunner.java +++ b/src-plugin/com/wentch/redkale/net/socks/SocksRunner.java @@ -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);