diff --git a/backend/package.json b/backend/package.json index 4aa9cdd..209d70b 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 0fc899e..430c608 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];