diff --git a/backend/package.json b/backend/package.json index 6af349b..97a7dbc 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 b14ab62..bb83f7a 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 8d1a1f2..5848997 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/clash.js b/backend/src/core/proxy-utils/producers/clash.js index 311ab64..8f4268d 100644 --- a/backend/src/core/proxy-utils/producers/clash.js +++ b/backend/src/core/proxy-utils/producers/clash.js @@ -141,6 +141,7 @@ export default function Clash_Producer() { 'hysteria', 'hysteria2', 'juicity', + 'anytls', ].includes(proxy.type) ) { delete proxy.tls; diff --git a/backend/src/core/proxy-utils/producers/clashmeta.js b/backend/src/core/proxy-utils/producers/clashmeta.js index 4134618..129fe1a 100644 --- a/backend/src/core/proxy-utils/producers/clashmeta.js +++ b/backend/src/core/proxy-utils/producers/clashmeta.js @@ -160,6 +160,7 @@ export default function ClashMeta_Producer() { 'hysteria', 'hysteria2', 'juicity', + 'anytls', ].includes(proxy.type) ) { delete proxy.tls; diff --git a/backend/src/core/proxy-utils/producers/shadowrocket.js b/backend/src/core/proxy-utils/producers/shadowrocket.js index 2446c0d..9a9e02c 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; @@ -163,6 +163,7 @@ export default function Shadowrocket_Producer() { 'hysteria', 'hysteria2', 'juicity', + 'anytls', ].includes(proxy.type) ) { delete proxy.tls; diff --git a/backend/src/core/proxy-utils/producers/stash.js b/backend/src/core/proxy-utils/producers/stash.js index 3ee95c9..a947590 100644 --- a/backend/src/core/proxy-utils/producers/stash.js +++ b/backend/src/core/proxy-utils/producers/stash.js @@ -247,6 +247,7 @@ export default function Stash_Producer() { 'hysteria', 'hysteria2', 'juicity', + 'anytls', ].includes(proxy.type) ) { delete proxy.tls;