From 7213cea16c215c7e5569946a759f318441c625cc Mon Sep 17 00:00:00 2001 From: xream Date: Thu, 3 Apr 2025 15:47:35 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20Stash=20=E6=AD=A3=E5=BC=8F=E7=89=88?= =?UTF-8?q?=E6=94=AF=E6=8C=81=20SS2022,=20=E6=B5=8B=E8=AF=95=E7=89=88(>=3D?= =?UTF-8?q?3.1.0)=20=E6=94=AF=E6=8C=81=20VLESS=20REALITY(xtls-rprx-vision)?= 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 | 8 ++------ backend/src/utils/user-agent.js | 2 +- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/backend/package.json b/backend/package.json index 4cb4dc8..6acfcef 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.19.14", + "version": "2.19.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/producers/stash.js b/backend/src/core/proxy-utils/producers/stash.js index 97555f9..eaf1662 100644 --- a/backend/src/core/proxy-utils/producers/stash.js +++ b/backend/src/core/proxy-utils/producers/stash.js @@ -39,12 +39,8 @@ 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', - ] - : []), + '2022-blake3-aes-128-gcm', + '2022-blake3-aes-256-gcm', ].includes(proxy.cipher)) || (proxy.type === 'snell' && String(proxy.version) === '4') || (opts['include-unsupported-proxy'] diff --git a/backend/src/utils/user-agent.js b/backend/src/utils/user-agent.js index 682946f..96e2088 100644 --- a/backend/src/utils/user-agent.js +++ b/backend/src/utils/user-agent.js @@ -75,7 +75,7 @@ export function shouldIncludeUnsupportedProxy(platform, ua) { if ( platform === 'Stash' && target === 'Stash' && - gte(version, '2.8.0') + gte(version, '3.1.0') ) { return true; }