feat: Stash 正式支持 SS2022, VLESS REALITY(xtls-rprx-vision)

This commit is contained in:
xream 2025-04-03 15:36:25 +08:00
parent 260b1e5332
commit 5dd293267b
No known key found for this signature in database
GPG Key ID: 1D2C5225471789F9
2 changed files with 7 additions and 13 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "sub-store", "name": "sub-store",
"version": "2.19.14", "version": "2.19.15",
"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": {

View File

@ -2,7 +2,7 @@ import { isPresent } from '@/core/proxy-utils/producers/utils';
export default function Stash_Producer() { export default function Stash_Producer() {
const type = 'ALL'; const type = 'ALL';
const produce = (proxies, type, opts = {}) => { const produce = (proxies, type) => {
// https://stash.wiki/proxy-protocols/proxy-types#shadowsocks // https://stash.wiki/proxy-protocols/proxy-types#shadowsocks
const list = proxies const list = proxies
.filter((proxy) => { .filter((proxy) => {
@ -39,19 +39,13 @@ export default function Stash_Producer() {
'xchacha20', 'xchacha20',
'chacha20-ietf-poly1305', 'chacha20-ietf-poly1305',
'xchacha20-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)) || ].includes(proxy.cipher)) ||
(proxy.type === 'snell' && String(proxy.version) === '4') || (proxy.type === 'snell' && String(proxy.version) === '4') ||
(opts['include-unsupported-proxy'] (proxy.type === 'vless' &&
? proxy.type === 'vless' && proxy['reality-opts'] &&
proxy['reality-opts'] && !['xtls-rprx-vision'].includes(proxy.flow))
!['xtls-rprx-vision'].includes(proxy.flow)
: proxy.type === 'vless' && proxy['reality-opts'])
) { ) {
return false; return false;
} }