From c5292827d0deb51e6050a5f65b16c2d4b2d419cb Mon Sep 17 00:00:00 2001 From: xream Date: Wed, 19 Feb 2025 16:59:24 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=94=AF=E6=8C=81=20anytls=20=E5=8D=8F?= =?UTF-8?q?=E8=AE=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/package.json | 2 +- backend/src/core/proxy-utils/index.js | 11 ++++++++--- backend/src/core/proxy-utils/parsers/index.js | 1 + .../src/core/proxy-utils/producers/shadowrocket.js | 2 +- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/backend/package.json b/backend/package.json index 6af349bfb1..97a7dbce05 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.16.47", + "version": "2.16.48", "description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.", "main": "src/main.js", "scripts": { diff --git a/backend/src/core/proxy-utils/index.js b/backend/src/core/proxy-utils/index.js index b14ab6232a..bb83f7aa6f 100644 --- a/backend/src/core/proxy-utils/index.js +++ b/backend/src/core/proxy-utils/index.js @@ -423,9 +423,14 @@ function lastParse(proxy) { } } if ( - ['trojan', 'tuic', 'hysteria', 'hysteria2', 'juicity'].includes( - proxy.type, - ) + [ + 'trojan', + 'tuic', + 'hysteria', + 'hysteria2', + 'juicity', + 'anytls', + ].includes(proxy.type) ) { proxy.tls = true; } diff --git a/backend/src/core/proxy-utils/parsers/index.js b/backend/src/core/proxy-utils/parsers/index.js index 8d1a1f2917..5848997081 100644 --- a/backend/src/core/proxy-utils/parsers/index.js +++ b/backend/src/core/proxy-utils/parsers/index.js @@ -1010,6 +1010,7 @@ function Clash_All() { const proxy = JSON.parse(line); if ( ![ + 'anytls', 'mieru', 'juicity', 'ss', diff --git a/backend/src/core/proxy-utils/producers/shadowrocket.js b/backend/src/core/proxy-utils/producers/shadowrocket.js index 2446c0dcda..8b1537e6ce 100644 --- a/backend/src/core/proxy-utils/producers/shadowrocket.js +++ b/backend/src/core/proxy-utils/producers/shadowrocket.js @@ -8,7 +8,7 @@ export default function Shadowrocket_Producer() { if (opts['include-unsupported-proxy']) return true; if (proxy.type === 'snell' && String(proxy.version) === '4') { return false; - } else if (['mieru'].includes(proxy.type)) { + } else if (['mieru', 'anytls'].includes(proxy.type)) { return false; } return true;