From 2375a30c9f09576430a2a0c56ea25cff5d36584b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=89=AF?= <841369634@qq.com> Date: Fri, 13 Sep 2024 22:36:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=A6=E6=88=AA=E5=99=A8=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E4=BC=98=E5=8C=96=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/mitmproxy/src/options.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/mitmproxy/src/options.js b/packages/mitmproxy/src/options.js index 023b2cf..3941b7e 100644 --- a/packages/mitmproxy/src/options.js +++ b/packages/mitmproxy/src/options.js @@ -116,6 +116,8 @@ module.exports = (serverConfig) => { const interceptOpt = interceptOpts[regexp] // interceptOpt.key = regexp + log.debug(`拦截器匹配path成功:${rOptions.protocol}//${rOptions.hostname}:${rOptions.port}${rOptions.path}, regexp: ${regexp}, interceptOpt:`, interceptOpt) + // log.info(`interceptor matched, regexp: '${regexp}' =>`, JSON.stringify(interceptOpt), ', url:', url) for (const impl of interceptorImpls) { // 根据拦截配置挑选合适的拦截器来处理