mirror of
https://github.com/sub-store-org/Sub-Store.git
synced 2026-11-28 23:40:30 +00:00
fix: 修复 Surge VMess network 筛选逻辑
This commit is contained in:
3 files changed
+3
-3
No files matched your search
@@ -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`);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user