From 2bca66993089cee4d389b973308964b8ab2ca138 Mon Sep 17 00:00:00 2001 From: xream Date: Thu, 4 Apr 2024 16:52:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20SS=20URI=20?= =?UTF-8?q?=E8=A7=A3=E6=9E=90=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/package.json | 2 +- backend/src/core/proxy-utils/parsers/index.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/package.json b/backend/package.json index 8bd0acf..f6114bb 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.14.276", + "version": "2.14.277", "description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.", "main": "src/main.js", "scripts": { diff --git a/backend/src/core/proxy-utils/parsers/index.js b/backend/src/core/proxy-utils/parsers/index.js index e38fffe..33e3944 100644 --- a/backend/src/core/proxy-utils/parsers/index.js +++ b/backend/src/core/proxy-utils/parsers/index.js @@ -63,9 +63,9 @@ function URI_SS() { /\d+/, )?.[0]; - const userInfo = userInfoStr.split(':'); - proxy.cipher = userInfo[0]; - proxy.password = userInfo[1]; + const userInfo = userInfoStr.match(/(^.*?):(.*$)/); + proxy.cipher = userInfo[1]; + proxy.password = userInfo[2]; // handle obfs const idx = content.indexOf('?plugin=');