fix: 修复 Surge VMess network 筛选逻辑

This commit is contained in:
xream committed 2026-01-02 03:07:00 +08:00
1 parent b1562970dc
commit d0cd900765
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "sub-store",
"version": "2.20.65",
"version": "2.20.66",
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.",
"main": "src/main.js",
"scripts": {
@@ -219,7 +219,7 @@ function handleTransport(result, proxy) {
}
}
}
} else {
} else if (!['tcp'].includes(proxy.network)) {
throw new Error(`network ${proxy.network} is unsupported`);
}
}
@@ -1226,7 +1226,7 @@ function handleTransport(result, proxy, includeUnsupportedProxy) {
$.info(
`Include Unsupported Proxy: network ${proxy.network} -> tcp`,
);
} else {
} else if (!['tcp'].includes(proxy.network)) {
throw new Error(`network ${proxy.network} is unsupported`);
}
}