mirror of
https://github.com/sub-store-org/Sub-Store.git
synced 2026-12-06 19:28:24 +00:00
feat: Surge 自动过滤带传输层的 anytls
This commit is contained in:
2 files changed
+11
-1
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "sub-store",
|
||||
"version": "2.20.50",
|
||||
"version": "2.20.51",
|
||||
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.",
|
||||
"main": "src/main.js",
|
||||
"scripts": {
|
||||
|
||||
@@ -47,6 +47,16 @@ export default function Surge_Producer() {
|
||||
return wireguard(proxy);
|
||||
}
|
||||
if (opts['include-unsupported-proxy'] && proxy.type === 'anytls') {
|
||||
if (
|
||||
proxy.network &&
|
||||
(!['tcp'].includes(proxy.network) ||
|
||||
(['tcp'].includes(proxy.network) && proxy['reality-opts']))
|
||||
) {
|
||||
throw new Error(
|
||||
`Platform ${targetPlatform} does not support proxy type ${proxy.type} with network or reality`,
|
||||
);
|
||||
}
|
||||
|
||||
return anytls(proxy);
|
||||
}
|
||||
throw new Error(
|
||||
|
||||
Reference in new issue
Block a user