From 85e8320c0cba54163691b9cd8fc04cb326bf1496 Mon Sep 17 00:00:00 2001 From: xream Date: Mon, 8 Sep 2025 19:47:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20Egern=20VMesss=20le?= =?UTF-8?q?gacy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/package.json | 2 +- backend/src/core/proxy-utils/producers/egern.js | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/backend/package.json b/backend/package.json index f160d9bc..0da27c8d 100644 --- a/backend/package.json +++ b/backend/package.json @@ -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": { diff --git a/backend/src/core/proxy-utils/producers/egern.js b/backend/src/core/proxy-utils/producers/egern.js index 5af7e4a9..20637419 100644 --- a/backend/src/core/proxy-utils/producers/egern.js +++ b/backend/src/core/proxy-utils/producers/egern.js @@ -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,