diff --git a/docs/en/install/README.md b/docs/en/install/README.md index 4511a137c8..f357bd564f 100644 --- a/docs/en/install/README.md +++ b/docs/en/install/README.md @@ -488,4 +488,4 @@ See docs of specified route and `lib/config.js` for detail information. - Sci-hub for scientific journal routes: - - `SCIHUB_HOST`: The Sci-hub mirror address that is accssible from your location, default to `https://sci-hub.tw`. + - `SCIHUB_HOST`: The Sci-hub mirror address that is accssible from your location, default to `https://sci-hub.se`. diff --git a/docs/install/README.md b/docs/install/README.md index 864a5176f0..4671026584 100644 --- a/docs/install/README.md +++ b/docs/install/README.md @@ -553,7 +553,7 @@ RSSHub 支持使用访问密钥 / 码,白名单和黑名单三种方式进行 - Sci-hub 设置,用于科学期刊路由。 - - `SCIHUB_HOST`: 可访问的 sci-hub 镜像地址,默认为 `https://sci-hub.tw`。 + - `SCIHUB_HOST`: 可访问的 sci-hub 镜像地址,默认为 `https://sci-hub.se`。 - 端传媒设置,用于获取付费内容全文: diff --git a/lib/config.js b/lib/config.js index d46f9b46c7..5bc4afe63c 100644 --- a/lib/config.js +++ b/lib/config.js @@ -136,7 +136,7 @@ const calculateValue = () => { cookies: discuz_cookies, }, scihub: { - host: envs.SCIHUB_HOST || 'https://sci-hub.tw/', + host: envs.SCIHUB_HOST || 'https://sci-hub.se/', }, hotlink: { template: envs.HOTLINK_TEMPLATE, diff --git a/lib/middleware/parameter.js b/lib/middleware/parameter.js index 4c9f1d9a4d..4d58225c4e 100644 --- a/lib/middleware/parameter.js +++ b/lib/middleware/parameter.js @@ -221,7 +221,7 @@ module.exports = async (ctx, next) => { // scihub if (ctx.query.scihub) { ctx.state.data.item.map((item) => { - item.link = item.doi ? `https://sci-hub.tw/${item.doi}` : `https://sci-hub.tw/${item.link}`; + item.link = item.doi ? `https://sci-hub.se/${item.doi}` : `https://sci-hub.se/${item.link}`; return item; }); }