From 7f691c8511d6d2f88d1d34b6e756822b3c6d88a4 Mon Sep 17 00:00:00 2001 From: xream Date: Sun, 20 Apr 2025 20:10:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20SS=20=E8=A7=A3=E6=9E=90=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E9=BB=98=E8=AE=A4=E8=8A=82=E7=82=B9=E5=90=8D?= 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, 6 insertions(+), 2 deletions(-) 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 };