From bba404ae4063e11a967e4fa42b7930df4b41c701 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=89=AF?= <841369634@qq.com> Date: Wed, 17 Apr 2024 10:58:49 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4github.com=E7=9A=84=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD=E5=8A=A0=E9=80=9F=E9=87=8D=E5=AE=9A=E5=90=91=EF=BC=8C?= =?UTF-8?q?=E5=9B=A0=E4=B8=BA=E5=B7=B2=E7=BB=8F=E6=9C=89=E6=B2=B9=E7=8C=B4?= =?UTF-8?q?=E8=84=9A=E6=9C=AC=E4=BA=86=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/core/src/config/index.js | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/packages/core/src/config/index.js b/packages/core/src/config/index.js index 10e8fc5..964c258 100644 --- a/packages/core/src/config/index.js +++ b/packages/core/src/config/index.js @@ -52,13 +52,16 @@ module.exports = { }, intercepts: { 'github.com': { - '/.*/.*/releases/download/': { - redirect: 'gh.api.99988866.xyz/https://github.com', - desc: 'release文件加速下载跳转地址' - }, - '/.*/.*/archive/': { - redirect: 'gh.api.99988866.xyz/https://github.com' + '.*': { + sni: 'baidu.com' }, + // '/.*/.*/releases/download/': { + // redirect: 'gh.api.99988866.xyz/https://github.com', + // desc: 'release文件加速下载跳转地址' + // }, + // '/.*/.*/archive/': { + // redirect: 'gh.api.99988866.xyz/https://github.com' + // }, // 以下代理地址不支持该类资源的代理,暂时注释掉 // '/.*/.*/blame/': { // redirect: 'gh.api.99988866.xyz/https://github.com' @@ -69,10 +72,6 @@ module.exports = { ], desc: '油猴脚本:高速下载 Git Clone/SSH、Release、Raw、Code(ZIP) 等文件 (公益加速)、项目列表单文件快捷下载、添加 git clone 命令' }, - '.*': { - desc: '目前禁掉sni就可以直接访问,如果后续github.com的ip被封锁,只能再走proxy模式', - sni: 'baidu.com' - }, '/fluidicon.png': { cacheDays: 365, desc: 'Github那只猫的图片,缓存1年'