feat: 支持 anytls 协议

This commit is contained in:
xream 2025-02-19 16:59:24 +08:00
parent 0825f15d04
commit ffabcc9391
No known key found for this signature in database
GPG Key ID: 1D2C5225471789F9
7 changed files with 15 additions and 5 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "sub-store", "name": "sub-store",
"version": "2.16.47", "version": "2.16.48",
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.", "description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.",
"main": "src/main.js", "main": "src/main.js",
"scripts": { "scripts": {

View File

@ -423,9 +423,14 @@ function lastParse(proxy) {
} }
} }
if ( if (
['trojan', 'tuic', 'hysteria', 'hysteria2', 'juicity'].includes( [
proxy.type, 'trojan',
) 'tuic',
'hysteria',
'hysteria2',
'juicity',
'anytls',
].includes(proxy.type)
) { ) {
proxy.tls = true; proxy.tls = true;
} }

View File

@ -1010,6 +1010,7 @@ function Clash_All() {
const proxy = JSON.parse(line); const proxy = JSON.parse(line);
if ( if (
![ ![
'anytls',
'mieru', 'mieru',
'juicity', 'juicity',
'ss', 'ss',

View File

@ -141,6 +141,7 @@ export default function Clash_Producer() {
'hysteria', 'hysteria',
'hysteria2', 'hysteria2',
'juicity', 'juicity',
'anytls',
].includes(proxy.type) ].includes(proxy.type)
) { ) {
delete proxy.tls; delete proxy.tls;

View File

@ -160,6 +160,7 @@ export default function ClashMeta_Producer() {
'hysteria', 'hysteria',
'hysteria2', 'hysteria2',
'juicity', 'juicity',
'anytls',
].includes(proxy.type) ].includes(proxy.type)
) { ) {
delete proxy.tls; delete proxy.tls;

View File

@ -8,7 +8,7 @@ export default function Shadowrocket_Producer() {
if (opts['include-unsupported-proxy']) return true; if (opts['include-unsupported-proxy']) return true;
if (proxy.type === 'snell' && String(proxy.version) === '4') { if (proxy.type === 'snell' && String(proxy.version) === '4') {
return false; return false;
} else if (['mieru'].includes(proxy.type)) { } else if (['mieru', 'anytls'].includes(proxy.type)) {
return false; return false;
} }
return true; return true;
@ -163,6 +163,7 @@ export default function Shadowrocket_Producer() {
'hysteria', 'hysteria',
'hysteria2', 'hysteria2',
'juicity', 'juicity',
'anytls',
].includes(proxy.type) ].includes(proxy.type)
) { ) {
delete proxy.tls; delete proxy.tls;

View File

@ -247,6 +247,7 @@ export default function Stash_Producer() {
'hysteria', 'hysteria',
'hysteria2', 'hysteria2',
'juicity', 'juicity',
'anytls',
].includes(proxy.type) ].includes(proxy.type)
) { ) {
delete proxy.tls; delete proxy.tls;