fix: ss none 必须配置 password

This commit is contained in:
xream committed 2025-01-15 23:11:34 +08:00
1 parent 9e47b1baf6
commit c0e5ff2d48
2 files changed
+9 -1

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "sub-store", "name": "sub-store",
"version": "2.16.15", "version": "2.16.16",
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.", "description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.",
"main": "src/main.js", "main": "src/main.js",
"scripts": { "scripts": {
+8
View File
@@ -343,6 +343,14 @@ function lastParse(proxy) {
if (typeof proxy.password === 'number') { if (typeof proxy.password === 'number') {
proxy.password = numberToString(proxy.password); 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) { if (proxy.interface) {
proxy['interface-name'] = proxy.interface; proxy['interface-name'] = proxy.interface;
delete proxy.interface; delete proxy.interface;