feat: Surge 自动过滤带传输层的 anytls

This commit is contained in:
xream committed 2025-12-12 21:16:59 +08:00
1 parent fede003050
commit f9050e5dc5
2 files changed
+11 -1

No files matched your search

+1 -1
View File
@@ -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(