From 78d9bf2dd0d0ac3c5c45041ae00b471ad515db50 Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Tue, 30 Nov 2021 00:08:49 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=8E=BB=E6=8E=89loopback=E7=9A=84?= =?UTF-8?q?=E4=BB=A3=E7=90=86=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/core/src/shell/scripts/set-system-proxy/index.js | 4 ++-- .../mitmproxy/src/lib/proxy/mitmproxy/createConnectHandler.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/core/src/shell/scripts/set-system-proxy/index.js b/packages/core/src/shell/scripts/set-system-proxy/index.js index 1f4394a..0207732 100644 --- a/packages/core/src/shell/scripts/set-system-proxy/index.js +++ b/packages/core/src/shell/scripts/set-system-proxy/index.js @@ -35,9 +35,9 @@ const _lanIP = [ '172.29.*', '172.30.*', '172.31.*', - '192.168.*', - '<-loopback>' + '192.168.*' ] +// '<-loopback>' async function _winUnsetProxy (exec, setEnv) { // eslint-disable-next-line no-constant-condition diff --git a/packages/mitmproxy/src/lib/proxy/mitmproxy/createConnectHandler.js b/packages/mitmproxy/src/lib/proxy/mitmproxy/createConnectHandler.js index ba6e0e3..d1f1e86 100644 --- a/packages/mitmproxy/src/lib/proxy/mitmproxy/createConnectHandler.js +++ b/packages/mitmproxy/src/lib/proxy/mitmproxy/createConnectHandler.js @@ -128,7 +128,7 @@ function connect (req, cltSocket, head, hostname, port, dnsConfig, sniRegexpMap) }) cltSocket.on('error', (e) => { - log.error('cltSocket error', e.message) + log.error('cltSocket error', e.message, hostname) }) proxySocket.on('timeout', () => { const end = new Date().getTime()