From 5a645081d18bd6c66c410121e3207ce8c8da7edc Mon Sep 17 00:00:00 2001 From: xream Date: Tue, 28 Nov 2023 23:14:45 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20SS=20URI=20=E7=AB=AF=E5=8F=A3=E5=8F=96?= =?UTF-8?q?=E6=95=B4=E6=95=B0=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/parsers/index.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/backend/package.json b/backend/package.json index 4aa9cdd10..209d70b03 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.14.102", + "version": "2.14.103", "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 0fc899ec1..430c608a4 100644 --- a/backend/src/core/proxy-utils/parsers/index.js +++ b/backend/src/core/proxy-utils/parsers/index.js @@ -33,7 +33,9 @@ function URI_SS() { const serverAndPort = serverAndPortArray[1]; const portIdx = serverAndPort.lastIndexOf(':'); proxy.server = serverAndPort.substring(0, portIdx); - proxy.port = serverAndPort.substring(portIdx + 1); + proxy.port = `${serverAndPort.substring(portIdx + 1)}`.match( + /\d+/, + )?.[0]; const userInfo = userInfoStr.split(':'); proxy.cipher = userInfo[0];