Skip to content

Commit ffabcc9

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

File tree

7 files changed

+15
-5
lines changed

7 files changed

+15
-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/clash.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ export default function Clash_Producer() {
141141
'hysteria',
142142
'hysteria2',
143143
'juicity',
144+
'anytls',
144145
].includes(proxy.type)
145146
) {
146147
delete proxy.tls;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ export default function ClashMeta_Producer() {
160160
'hysteria',
161161
'hysteria2',
162162
'juicity',
163+
'anytls',
163164
].includes(proxy.type)
164165
) {
165166
delete proxy.tls;

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

Lines changed: 2 additions & 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;
@@ -163,6 +163,7 @@ export default function Shadowrocket_Producer() {
163163
'hysteria',
164164
'hysteria2',
165165
'juicity',
166+
'anytls',
166167
].includes(proxy.type)
167168
) {
168169
delete proxy.tls;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ export default function Stash_Producer() {
247247
'hysteria',
248248
'hysteria2',
249249
'juicity',
250+
'anytls',
250251
].includes(proxy.type)
251252
) {
252253
delete proxy.tls;

0 commit comments

Comments
 (0)