mirror of
https://github.com/sub-store-org/Sub-Store.git
synced 2026-12-06 03:08:04 +00:00
fix: 修复 Egern VMesss legacy
This commit is contained in:
2 files changed
+8
-2
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user