From 8d045f2d64239ac55fdb77da2f082b906b53ca48 Mon Sep 17 00:00:00 2001 From: avwo Date: Sun, 26 Jul 2015 12:12:14 +0800 Subject: [PATCH] handle 502 --- lib/https/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/https/index.js b/lib/https/index.js index 45a0c16f1..23f9c1a8d 100644 --- a/lib/https/index.js +++ b/lib/https/index.js @@ -68,6 +68,7 @@ function handleWebsocket(socket, wss, callback) { function resolveHost(url, callback) { rules.resolveHost(proxyUrl, function(err, ip, customHost) { if (err) { + reqEmitter.host = LOCALHOST; return execCallback(err); }