Skip to content

Commit d0cd900

Browse files
committed
fix: 修复 Surge VMess network 筛选逻辑
1 parent b156297 commit d0cd900

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

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.65",
3+
"version": "2.20.66",
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/surfboard.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ function handleTransport(result, proxy) {
219219
}
220220
}
221221
}
222-
} else {
222+
} else if (!['tcp'].includes(proxy.network)) {
223223
throw new Error(`network ${proxy.network} is unsupported`);
224224
}
225225
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1226,7 +1226,7 @@ function handleTransport(result, proxy, includeUnsupportedProxy) {
12261226
$.info(
12271227
`Include Unsupported Proxy: network ${proxy.network} -> tcp`,
12281228
);
1229-
} else {
1229+
} else if (!['tcp'].includes(proxy.network)) {
12301230
throw new Error(`network ${proxy.network} is unsupported`);
12311231
}
12321232
}

0 commit comments

Comments
 (0)