From fa7df51f8ca40a72f246fdf0ad603e6bdea332e9 Mon Sep 17 00:00:00 2001 From: xream Date: Sun, 18 May 2025 17:21:27 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20Shadowrocket=20=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E5=89=8D=E7=BD=AE=E4=BB=A3=E7=90=86.=20=E8=A1=A5=E5=85=85=20de?= =?UTF-8?q?mo.js=20=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/package.json | 2 +- backend/src/core/proxy-utils/producers/shadowrocket.js | 5 ----- scripts/demo.js | 6 ++++-- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/backend/package.json b/backend/package.json index 6650935a8..3a38a7760 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.19.42", + "version": "2.19.43", "description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.", "main": "src/main.js", "scripts": { diff --git a/backend/src/core/proxy-utils/producers/shadowrocket.js b/backend/src/core/proxy-utils/producers/shadowrocket.js index a03fa71fb..1dc7be0b5 100644 --- a/backend/src/core/proxy-utils/producers/shadowrocket.js +++ b/backend/src/core/proxy-utils/producers/shadowrocket.js @@ -11,11 +11,6 @@ export default function Shadowrocket_Producer() { return false; } else if (['mieru', 'anytls'].includes(proxy.type)) { return false; - } else if (proxy['underlying-proxy'] || proxy['dialer-proxy']) { - $.error( - `Shadowrocket 不支持前置代理字段. 已过滤节点 ${proxy.name}. 请使用 App 内的 "代理通过" 功能`, - ); - return false; } return true; }) diff --git a/scripts/demo.js b/scripts/demo.js index 163d51945..cba4b5e2a 100644 --- a/scripts/demo.js +++ b/scripts/demo.js @@ -14,10 +14,12 @@ function operator(proxies = [], targetPlatform, context) { // 6. `_collectionName` 为组合订阅名, `_collectionDisplayName` 为组合订阅显示名 // 7. `tls-fingerprint` 为 tls 指纹 // 8. `underlying-proxy` 为前置代理, 不同平台会自动转换 + // 例如 $server['underlying-proxy'] = '名称' // 只给 mihomo 输出的话, `dialer-proxy` 也行 // 只给 sing-box 输出的话, `detour` 也行 - // 只给 egern 输出的话, `prev_hop` 也行 - // 输出到 Clash/Stash/Shadowrocket 时, 会过滤掉配置了前置代理的节点, 并提示使用对应的功能. + // 只给 Egern 输出的话, `prev_hop` 也行 + // 只给 Shadowrocket 输出的话, `chain` 也行 + // 输出到 Clash/Stash 时, 会过滤掉配置了前置代理的节点, 并提示使用对应的功能. // 9. `trojan`, `tuic`, `hysteria`, `hysteria2`, `juicity` 会在解析时设置 `tls`: true (会使用 tls 类协议的通用逻辑), 输出时删除 // 10. `sni` 在某些协议里会自动与 `servername` 转换 // 11. 读取节点的 ca-str 和 _ca (后端文件路径) 字段, 自动计算 fingerprint (参考 https://t.me/zhetengsha/1512)