Skip to content

Commit c266635

Browse files
committed
fix: 修复 sing-box shadowsocks+shadow-tls
1 parent f34eac9 commit c266635

2 files changed

Lines changed: 12 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.19.70",
3+
"version": "2.19.71",
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/sing-box.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,17 @@ const shadowTLSParser = (proxy = {}) => {
338338
password: proxy.password,
339339
detour: `${proxy.name}_shadowtls`,
340340
};
341+
if (proxy.uot) ssPart.udp_over_tcp = true;
342+
if (proxy['udp-over-tcp']) {
343+
ssPart.udp_over_tcp = {
344+
enabled: true,
345+
version:
346+
!proxy['udp-over-tcp-version'] ||
347+
proxy['udp-over-tcp-version'] === 1
348+
? 1
349+
: 2,
350+
};
351+
}
341352
const stPart = {
342353
tag: `${proxy.name}_shadowtls`,
343354
type: 'shadowtls',

0 commit comments

Comments
 (0)