mirror of
https://github.com/sub-store-org/Sub-Store.git
synced 2026-11-28 07:24:12 +00:00
feat: VMess YAML/JSON 输入解析时处理 cipher 和 alterId 默认值
This commit is contained in:
2 files changed
+5
-1
No files matched your search
@@ -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": {
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in new issue
Block a user