fix: 修复 Egern VMesss legacy

This commit is contained in:
xream committed 2025-09-08 19:47:19 +08:00
1 parent be7dbfe1b5
commit 85e8320c0c
2 files changed
+8 -2

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "sub-store",
"version": "2.20.21",
"version": "2.20.22",
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.",
"main": "src/main.js",
"scripts": {
@@ -268,6 +268,12 @@ export default function Egern_Producer() {
},
};
}
let legacy;
if (isPresent(proxy, 'aead') && !proxy.aead) {
legacy = true;
} else if (proxy.alterId !== 0) {
legacy = true;
}
proxy = {
type: 'vmess',
name: proxy.name,
@@ -276,7 +282,7 @@ export default function Egern_Producer() {
user_id: proxy.uuid,
security,
tfo: proxy.tfo || proxy['fast-open'],
legacy: !proxy.aead,
legacy,
udp_relay:
proxy.udp || proxy.udp_relay || proxy.udp_relay,
next_hop: proxy.next_hop,