feat: VMess YAML/JSON 输入解析时处理 cipher 和 alterId 默认值

This commit is contained in:
xream committed 2025-12-31 01:18:19 +08:00
1 parent 525e54e988
commit 57326de166
2 files changed
+5 -1

No files matched your search

+1 -1
View File
@@ -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": {
+4
View File
@@ -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';