avoid throw out error

This commit is contained in:
avwo
2015-07-26 03:12:01 +08:00
parent 72bf339df2
commit ffdb1d58a8
5 changed files with 9 additions and 11 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ function handleWebsocket(socket, wss, callback) {
if (util.isLocalAddress(ip) && (!options.port || options.port == config.port)) {
return execCallback(new Error('Unable to agent to itself (' + ip + ':' + config.port + ')'));
}
util.connectProxy({
util.connect({
isSocks: isSocks,
host: ip,
port: options.port,