From 5ac4aa8cb4bd592d3af3457b3ce72fba4621da4a Mon Sep 17 00:00:00 2001 From: xream Date: Sun, 5 May 2024 02:14:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=AE=80=E5=8D=95=E4=BF=AE=E5=A4=8D=20S?= =?UTF-8?q?S=20URI=20=E5=A4=9A=E5=8F=82=E6=95=B0=E6=8B=BC=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/package.json | 2 +- backend/src/core/proxy-utils/producers/uri.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/backend/package.json b/backend/package.json index 3ed92a6..f26dfcc 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.14.306", + "version": "2.14.307", "description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.", "main": "src/main.js", "scripts": { diff --git a/backend/src/core/proxy-utils/producers/uri.js b/backend/src/core/proxy-utils/producers/uri.js index 85d5787..60cad08 100644 --- a/backend/src/core/proxy-utils/producers/uri.js +++ b/backend/src/core/proxy-utils/producers/uri.js @@ -55,7 +55,9 @@ export default function URI_Producer() { result = `${result}${proxy.plugin ? '&' : '?'}uot=1`; } if (proxy.tfo) { - result = `${result}${proxy.plugin ? '&' : '?'}tfo=1`; + result = `${result}${ + proxy.plugin || proxy['udp-over-tcp'] ? '&' : '?' + }tfo=1`; } result += `#${encodeURIComponent(proxy.name)}`; break;