From d0cba285abc09fbda06119b297b83cc0a0c71099 Mon Sep 17 00:00:00 2001 From: xream Date: Sat, 9 Dec 2023 02:08:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A4=84=E7=90=86=20Hysteria2=20URI=20?= =?UTF-8?q?=E4=B8=AD=E7=9A=84=E5=AF=86=E7=A0=81=E9=83=A8=E5=88=86?= 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 | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/backend/package.json b/backend/package.json index d8a385f..fbc4cc8 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.14.116", + "version": "2.14.117", "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 a806302..f8ad2e4 100644 --- a/backend/src/core/proxy-utils/producers/uri.js +++ b/backend/src/core/proxy-utils/producers/uri.js @@ -258,11 +258,11 @@ export default function URI_Producer() { if (proxy.tfo) { hysteria2params.push(`fastopen=1`); } - result = `hysteria2://${proxy.password}@${proxy.server}:${ - proxy.port - }?${hysteria2params.join('&')}#${encodeURIComponent( - proxy.name, - )}`; + result = `hysteria2://${encodeURIComponent(proxy.password)}@${ + proxy.server + }:${proxy.port}?${hysteria2params.join( + '&', + )}#${encodeURIComponent(proxy.name)}`; break; } return result;