diff --git a/backend/package.json b/backend/package.json index c5423bb..f7c84a6 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.19.28", + "version": "2.19.29", "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 49a131e..5675ae0 100644 --- a/backend/src/core/proxy-utils/parsers/index.js +++ b/backend/src/core/proxy-utils/parsers/index.js @@ -128,8 +128,8 @@ function URI_SS() { // parse url let content = line.split('ss://')[1]; + let name = line.split('#')[1]; const proxy = { - name: decodeURIComponent(line.split('#')[1]), type: 'ss', }; content = content.split('#')[0]; // strip proxy name @@ -260,6 +260,10 @@ function URI_SS() { if (/(&|\?)tfo=(1|true)/i.test(query)) { proxy.tfo = true; } + if (name != null) { + name = decodeURIComponent(name); + } + proxy.name = name ?? `SS ${proxy.server}:${proxy.port}`; return proxy; }; return { name, test, parse };