From 98892fa100e00b70e9fed7e4cc81bf34fc818e46 Mon Sep 17 00:00:00 2001 From: xream Date: Mon, 12 May 2025 11:06:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20QX=20VMess=20aead?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/package.json | 2 +- backend/src/core/proxy-utils/parsers/peggy/qx.js | 6 +++--- backend/src/core/proxy-utils/parsers/peggy/qx.peg | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/backend/package.json b/backend/package.json index 5fcfdac..53eaa04 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.19.38", + "version": "2.19.39", "description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.", "main": "src/main.js", "scripts": { diff --git a/backend/src/core/proxy-utils/parsers/peggy/qx.js b/backend/src/core/proxy-utils/parsers/peggy/qx.js index 2a0f229..c9d216f 100644 --- a/backend/src/core/proxy-utils/parsers/peggy/qx.js +++ b/backend/src/core/proxy-utils/parsers/peggy/qx.js @@ -86,10 +86,10 @@ vmess = "vmess" equals address (uuid/method/over_tls/tls_host/tls_pubkey_sha256/tls_alpn/tls_no_session_ticket/tls_no_session_reuse/tls_fingerprint/tls_verification/tag/obfs/obfs_host/obfs_uri/udp_relay/udp_over_tcp/fast_open/aead/server_check_url/others)* { proxy.type = "vmess"; proxy.cipher = proxy.cipher || "none"; - if (proxy.aead) { - proxy.alterId = 0; + if (proxy.aead === false) { + proxy.alterId = 1; } else { - proxy.alterId = proxy.alterId || 0; + proxy.alterId = 0; } handleObfs(); } diff --git a/backend/src/core/proxy-utils/parsers/peggy/qx.peg b/backend/src/core/proxy-utils/parsers/peggy/qx.peg index 00a84cd..3f72e19 100644 --- a/backend/src/core/proxy-utils/parsers/peggy/qx.peg +++ b/backend/src/core/proxy-utils/parsers/peggy/qx.peg @@ -84,10 +84,10 @@ vmess = "vmess" equals address (uuid/method/over_tls/tls_host/tls_pubkey_sha256/tls_alpn/tls_no_session_ticket/tls_no_session_reuse/tls_fingerprint/tls_verification/tag/obfs/obfs_host/obfs_uri/udp_relay/udp_over_tcp/fast_open/aead/server_check_url/others)* { proxy.type = "vmess"; proxy.cipher = proxy.cipher || "none"; - if (proxy.aead) { - proxy.alterId = 0; + if (proxy.aead === false) { + proxy.alterId = 1; } else { - proxy.alterId = proxy.alterId || 0; + proxy.alterId = 0; } handleObfs(); }