From 7029802b88db6e03436fa18cfd8431dc6836ece8 Mon Sep 17 00:00:00 2001 From: xream Date: Mon, 28 Apr 2025 13:54:23 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=85=BC=E5=AE=B9=E9=9D=9E=E6=A0=87=20?= =?UTF-8?q?Shadowsocks=20URI=20=E8=BE=93=E5=85=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/parsers/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/package.json b/backend/package.json index 0f15c29..a941228 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.19.35", + "version": "2.19.36", "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 b2fa24d..67f578a 100644 --- a/backend/src/core/proxy-utils/parsers/index.js +++ b/backend/src/core/proxy-utils/parsers/index.js @@ -134,7 +134,7 @@ function URI_SS() { }; content = content.split('#')[0]; // strip proxy name // handle IPV4 and IPV6 - let serverAndPortArray = content.match(/@([^/]*)(\/|$)/); + let serverAndPortArray = content.match(/@([^/?]*)(\/|\?|$)/); let rawUserInfoStr = decodeURIComponent(content.split('@')[0]); // 其实应该分隔之后, 用户名和密码再 decodeURIComponent. 但是问题不大 let userInfoStr;