From fc9ff48b1f59657ba651434bd28ec54c7e0881ec Mon Sep 17 00:00:00 2001 From: xream Date: Wed, 15 Jan 2025 23:11:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20ss=20none=20=E5=BF=85=E9=A1=BB=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=20password?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/package.json | 2 +- backend/src/core/proxy-utils/index.js | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/backend/package.json b/backend/package.json index 6bd869591..e0fcd4491 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.16.15", + "version": "2.16.16", "description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.", "main": "src/main.js", "scripts": { diff --git a/backend/src/core/proxy-utils/index.js b/backend/src/core/proxy-utils/index.js index 922562a0f..13f9f35cd 100644 --- a/backend/src/core/proxy-utils/index.js +++ b/backend/src/core/proxy-utils/index.js @@ -343,6 +343,14 @@ function lastParse(proxy) { if (typeof proxy.password === 'number') { proxy.password = numberToString(proxy.password); } + if ( + ['ss'].includes(proxy.type) && + proxy.cipher === 'none' && + !proxy.password + ) { + // https://github.com/MetaCubeX/mihomo/issues/1677 + proxy.password = ''; + } if (proxy.interface) { proxy['interface-name'] = proxy.interface; delete proxy.interface;