From a1a4bd12a7d1aebf49da0f25752c97eb304c4352 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=89=AF?= <841369634@qq.com> Date: Fri, 11 Oct 2024 15:56:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=92=A4=E5=9B=9E=E9=83=A8=E5=88=86=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/core/src/config/index.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/packages/core/src/config/index.js b/packages/core/src/config/index.js index 5853db7..f46108a 100644 --- a/packages/core/src/config/index.js +++ b/packages/core/src/config/index.js @@ -118,11 +118,6 @@ module.exports = { desc: '仓库内脚本,重定向改为代理,并设置响应头Content-Type。作用:方便script拦截器直接使用,避免引起跨域问题和脚本内容限制问题。' } }, - '*.github.com': { - '.*': { - sni: 'baidu.com' - } - }, 'github-releases.githubusercontent.com': { '.*': { sni: 'baidu.com' @@ -142,6 +137,11 @@ module.exports = { sni: 'baidu.com' } }, + 'collector.github.com': { + '.*': { + sni: 'baidu.com' + } + }, 'customer-stories-feed.github.com': { '.*': { proxy: 'customer-stories-feed.fastgit.org' } }, @@ -181,6 +181,9 @@ module.exports = { '^/_private/browser/stats$': { success: true, desc: 'github的访问速度分析上传,没有必要,直接返回成功' + }, + '.*': { + sni: 'baidu.com' } }, '*.docker.com': {