Skip to content

Commit c529282

Browse files
committed
feat: 支持 anytls 协议
1 parent 0825f15 commit c529282

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sub-store",
3-
"version": "2.16.47",
3+
"version": "2.16.48",
44
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.",
55
"main": "src/main.js",
66
"scripts": {

backend/src/core/proxy-utils/index.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -423,9 +423,14 @@ function lastParse(proxy) {
423423
}
424424
}
425425
if (
426-
['trojan', 'tuic', 'hysteria', 'hysteria2', 'juicity'].includes(
427-
proxy.type,
428-
)
426+
[
427+
'trojan',
428+
'tuic',
429+
'hysteria',
430+
'hysteria2',
431+
'juicity',
432+
'anytls',
433+
].includes(proxy.type)
429434
) {
430435
proxy.tls = true;
431436
}

backend/src/core/proxy-utils/parsers/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1010,6 +1010,7 @@ function Clash_All() {
10101010
const proxy = JSON.parse(line);
10111011
if (
10121012
![
1013+
'anytls',
10131014
'mieru',
10141015
'juicity',
10151016
'ss',

backend/src/core/proxy-utils/producers/shadowrocket.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default function Shadowrocket_Producer() {
88
if (opts['include-unsupported-proxy']) return true;
99
if (proxy.type === 'snell' && String(proxy.version) === '4') {
1010
return false;
11-
} else if (['mieru'].includes(proxy.type)) {
11+
} else if (['mieru', 'anytls'].includes(proxy.type)) {
1212
return false;
1313
}
1414
return true;

0 commit comments

Comments
 (0)