From 09023f57f93d0da2819e1083c267560a0505b162 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=89=AF?= <841369634@qq.com> Date: Wed, 16 Oct 2024 20:52:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E8=B0=83=E6=95=B4=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/mitmproxy/src/lib/proxy/tls/FakeServersCenter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mitmproxy/src/lib/proxy/tls/FakeServersCenter.js b/packages/mitmproxy/src/lib/proxy/tls/FakeServersCenter.js index 85b8180..af1b1fe 100644 --- a/packages/mitmproxy/src/lib/proxy/tls/FakeServersCenter.js +++ b/packages/mitmproxy/src/lib/proxy/tls/FakeServersCenter.js @@ -48,7 +48,7 @@ module.exports = class FakeServersCenter { getServerPromise (hostname, port, ssl, manualCompatibleConfig) { if (port === 443 || port === 80) { ssl = port === 443 - } else { + } else if (ssl) { // 兼容程序:1 const compatibleConfig = compatible.getConnectCompatibleConfig(hostname, port, manualCompatibleConfig) if (compatibleConfig && compatibleConfig.ssl != null) {