From 57326de166b0d9f962c6794fdb378bbf00405dc1 Mon Sep 17 00:00:00 2001 From: xream Date: Wed, 31 Dec 2025 01:18:19 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20VMess=20YAML/JSON=20=E8=BE=93=E5=85=A5?= =?UTF-8?q?=E8=A7=A3=E6=9E=90=E6=97=B6=E5=A4=84=E7=90=86=20cipher=20?= =?UTF-8?q?=E5=92=8C=20alterId=20=E9=BB=98=E8=AE=A4=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/package.json | 2 +- backend/src/core/proxy-utils/index.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/backend/package.json b/backend/package.json index 1f6e5b0a..a7dbbb88 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.20.61", + "version": "2.20.62", "description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.", "main": "src/main.js", "scripts": { diff --git a/backend/src/core/proxy-utils/index.js b/backend/src/core/proxy-utils/index.js index 603ab1f8..68d3d9af 100644 --- a/backend/src/core/proxy-utils/index.js +++ b/backend/src/core/proxy-utils/index.js @@ -442,6 +442,10 @@ function lastParse(proxy) { delete proxy.network; } } + if (['vmess'].includes(proxy.type)) { + proxy.cipher = proxy.cipher || 'none'; + proxy.alterId = proxy.alterId || 0; + } if (['vless'].includes(proxy.type)) { if (!proxy.network) { proxy.network = 'tcp';