feat: Refine proxy

This commit is contained in:
avwo
2016-11-06 23:54:21 +08:00
parent 992ced3c17
commit 357ec4bbf7
2 changed files with 3 additions and 5 deletions
-1
View File
@@ -80,7 +80,6 @@ function handleWebsocket(socket, clientIp, callback) {
if (proxyUrl) {
!filter.hide && proxy.emit('request', reqEmitter);
var isSocks = /^socks:\/\//.test(proxyUrl);
data.realUrl = proxyUrl;
proxyUrl = 'http:' + util.removeProtocol(proxyUrl);
resolveHost(proxyUrl, function(ip) {
options = url.parse(proxyUrl);