Skip to content

Commit f9050e5

Browse files
committed
feat: Surge 自动过滤带传输层的 anytls
1 parent fede003 commit f9050e5

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sub-store",
3-
"version": "2.20.50",
3+
"version": "2.20.51",
44
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.",
55
"main": "src/main.js",
66
"scripts": {

backend/src/core/proxy-utils/producers/surge.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,16 @@ export default function Surge_Producer() {
4747
return wireguard(proxy);
4848
}
4949
if (opts['include-unsupported-proxy'] && proxy.type === 'anytls') {
50+
if (
51+
proxy.network &&
52+
(!['tcp'].includes(proxy.network) ||
53+
(['tcp'].includes(proxy.network) && proxy['reality-opts']))
54+
) {
55+
throw new Error(
56+
`Platform ${targetPlatform} does not support proxy type ${proxy.type} with network or reality`,
57+
);
58+
}
59+
5060
return anytls(proxy);
5161
}
5262
throw new Error(

0 commit comments

Comments
 (0)