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); }