diff --git a/lib/requestHandler.js b/lib/requestHandler.js index 7f664c870..b24980184 100644 --- a/lib/requestHandler.js +++ b/lib/requestHandler.js @@ -623,7 +623,7 @@ function getConnectReqHandler(userRule, recorder, httpsServerMgr) { // for ws request, redirect them to local ws server return interceptWsRequest ? localHttpServer : originServer; } else { - return httpsServerMgr.getSharedHttpsServer(host).then(serverInfo => ({ host: serverInfo.host, port: serverInfo.port })); + return httpsServerMgr.getSharedHttpsServer(host).then(serverInfo => ({ host: 'localhost', port: serverInfo.port })); } }) .then((serverInfo) => {