From 9ac1112b3713cac801e44e088067b936dba7ec44 Mon Sep 17 00:00:00 2001 From: xream Date: Tue, 22 Aug 2023 15:29:55 +0800 Subject: [PATCH] fix: VMess URI alterId parseInt --- backend/package.json | 2 +- backend/src/core/proxy-utils/parsers/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/package.json b/backend/package.json index 103f691..41b07e0 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.14.17", + "version": "2.14.18", "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/index.js b/backend/src/core/proxy-utils/parsers/index.js index 39c20a5..4b941ad 100644 --- a/backend/src/core/proxy-utils/parsers/index.js +++ b/backend/src/core/proxy-utils/parsers/index.js @@ -218,7 +218,7 @@ function URI_VMess() { port: params.port, cipher: getIfPresent(params.scy, 'auto'), uuid: params.id, - alterId: getIfPresent(params.aid, 0), + alterId: parseInt(getIfPresent(params.aid, 0)), tls: params.tls === 'tls' || params.tls === true, 'skip-cert-verify': isPresent(params.verify_cert) ? !params.verify_cert