Skip to content

Commit 85e8320

Browse files
committed
fix: 修复 Egern VMesss legacy
1 parent be7dbfe commit 85e8320

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

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.20.21",
3+
"version": "2.20.22",
44
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.",
55
"main": "src/main.js",
66
"scripts": {

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,12 @@ export default function Egern_Producer() {
268268
},
269269
};
270270
}
271+
let legacy;
272+
if (isPresent(proxy, 'aead') && !proxy.aead) {
273+
legacy = true;
274+
} else if (proxy.alterId !== 0) {
275+
legacy = true;
276+
}
271277
proxy = {
272278
type: 'vmess',
273279
name: proxy.name,
@@ -276,7 +282,7 @@ export default function Egern_Producer() {
276282
user_id: proxy.uuid,
277283
security,
278284
tfo: proxy.tfo || proxy['fast-open'],
279-
legacy: !proxy.aead,
285+
legacy,
280286
udp_relay:
281287
proxy.udp || proxy.udp_relay || proxy.udp_relay,
282288
next_hop: proxy.next_hop,

0 commit comments

Comments
 (0)