Skip to content

Commit 57326de

Browse files
committed
feat: VMess YAML/JSON 输入解析时处理 cipher 和 alterId 默认值
1 parent 525e54e commit 57326de

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sub-store",
3-
"version": "2.20.61",
3+
"version": "2.20.62",
44
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.",
55
"main": "src/main.js",
66
"scripts": {

backend/src/core/proxy-utils/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,10 @@ function lastParse(proxy) {
442442
delete proxy.network;
443443
}
444444
}
445+
if (['vmess'].includes(proxy.type)) {
446+
proxy.cipher = proxy.cipher || 'none';
447+
proxy.alterId = proxy.alterId || 0;
448+
}
445449
if (['vless'].includes(proxy.type)) {
446450
if (!proxy.network) {
447451
proxy.network = 'tcp';

0 commit comments

Comments
 (0)