fix: 简单修复 SS URI 多参数拼接

This commit is contained in:
xream 2024-05-05 02:14:55 +08:00
parent 7f3cb2b191
commit 630bac0575
No known key found for this signature in database
GPG Key ID: 1D2C5225471789F9
2 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "sub-store", "name": "sub-store",
"version": "2.14.306", "version": "2.14.307",
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.", "description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.",
"main": "src/main.js", "main": "src/main.js",
"scripts": { "scripts": {

View File

@ -55,7 +55,9 @@ export default function URI_Producer() {
result = `${result}${proxy.plugin ? '&' : '?'}uot=1`; result = `${result}${proxy.plugin ? '&' : '?'}uot=1`;
} }
if (proxy.tfo) { if (proxy.tfo) {
result = `${result}${proxy.plugin ? '&' : '?'}tfo=1`; result = `${result}${
proxy.plugin || proxy['udp-over-tcp'] ? '&' : '?'
}tfo=1`;
} }
result += `#${encodeURIComponent(proxy.name)}`; result += `#${encodeURIComponent(proxy.name)}`;
break; break;