From 6aece471aa69a6606f964ff2697b9a720e8f8853 Mon Sep 17 00:00:00 2001 From: xream Date: Wed, 27 Nov 2024 15:20:20 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20Stash=20=E4=BD=BF=E7=94=A8=20includeUns?= =?UTF-8?q?upportedProxy=20=E5=8F=82=E6=95=B0=E5=BC=80=E5=90=AF=20Shadowso?= =?UTF-8?q?cks=202022?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/package.json | 2 +- backend/src/core/proxy-utils/producers/stash.js | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/backend/package.json b/backend/package.json index 1a4bb51..4f13f67 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.14.427", + "version": "2.14.428", "description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.", "main": "src/main.js", "scripts": { diff --git a/backend/src/core/proxy-utils/producers/stash.js b/backend/src/core/proxy-utils/producers/stash.js index 8d38563..ac26b73 100644 --- a/backend/src/core/proxy-utils/producers/stash.js +++ b/backend/src/core/proxy-utils/producers/stash.js @@ -6,7 +6,6 @@ export default function Stash_Producer() { // https://stash.wiki/proxy-protocols/proxy-types#shadowsocks const list = proxies .filter((proxy) => { - if (opts['include-unsupported-proxy']) return true; if ( ![ 'ss', @@ -40,6 +39,12 @@ export default function Stash_Producer() { 'xchacha20', 'chacha20-ietf-poly1305', 'xchacha20-ietf-poly1305', + ...(opts['include-unsupported-proxy'] + ? [ + '2022-blake3-aes-128-gcm', + '2022-blake3-aes-256-gcm', + ] + : []), ].includes(proxy.cipher)) || (proxy.type === 'snell' && String(proxy.version) === '4') || (proxy.type === 'vless' && proxy['reality-opts'])