From 28f9d85c342479283b48101886251c6570041a4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=89=AF?= <841369634@qq.com> Date: Wed, 9 Oct 2024 15:37:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=80=E6=9C=89=20"*.github.com"=20=E5=9F=9F?= =?UTF-8?q?=E5=90=8D=EF=BC=8C=E5=85=A8=E9=83=A8=E4=BD=BF=E7=94=A8sni?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/core/src/config/index.js | 25 ++++++------------------- 1 file changed, 6 insertions(+), 19 deletions(-) diff --git a/packages/core/src/config/index.js b/packages/core/src/config/index.js index 027cd29..5853db7 100644 --- a/packages/core/src/config/index.js +++ b/packages/core/src/config/index.js @@ -118,6 +118,11 @@ module.exports = { desc: '仓库内脚本,重定向改为代理,并设置响应头Content-Type。作用:方便script拦截器直接使用,避免引起跨域问题和脚本内容限制问题。' } }, + '*.github.com': { + '.*': { + sni: 'baidu.com' + } + }, 'github-releases.githubusercontent.com': { '.*': { sni: 'baidu.com' @@ -137,11 +142,6 @@ module.exports = { sni: 'baidu.com' } }, - 'collector.github.com': { - '.*': { - sni: 'baidu.com' - } - }, 'customer-stories-feed.github.com': { '.*': { proxy: 'customer-stories-feed.fastgit.org' } }, @@ -181,17 +181,9 @@ module.exports = { '^/_private/browser/stats$': { success: true, desc: 'github的访问速度分析上传,没有必要,直接返回成功' - }, - '.*': { - sni: 'baidu.com' } }, - 'hub.docker.com': { - '.*': { - sni: 'baidu.com' - } - }, - 'api.dso.docker.com': { + '*.docker.com': { '.*': { sni: 'baidu.com' } @@ -203,11 +195,6 @@ module.exports = { desc: '登录页面的ico,采用hub.docker.com的' } }, - // '*.v2ex.com': { - // '.*': { - // sni: 'baidu.com' - // } - // }, // google cdn 'www.google.com': { '/recaptcha/.*': { proxy: 'www.recaptcha.net' }