mirror of
https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-10 00:52:40 +00:00
fix: 修复 snell 版本过滤范围
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "sub-store",
|
"name": "sub-store",
|
||||||
"version": "2.19.66",
|
"version": "2.19.67",
|
||||||
"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": {
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ export default function Clash_Producer() {
|
|||||||
'chacha20-ietf-poly1305',
|
'chacha20-ietf-poly1305',
|
||||||
'xchacha20-ietf-poly1305',
|
'xchacha20-ietf-poly1305',
|
||||||
].includes(proxy.cipher)) ||
|
].includes(proxy.cipher)) ||
|
||||||
(proxy.type === 'snell' && String(proxy.version) === '4') ||
|
(proxy.type === 'snell' && proxy.version >= 4) ||
|
||||||
(proxy.type === 'vless' &&
|
(proxy.type === 'vless' &&
|
||||||
(typeof proxy.flow !== 'undefined' ||
|
(typeof proxy.flow !== 'undefined' ||
|
||||||
proxy['reality-opts']))
|
proxy['reality-opts']))
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ export default function ClashMeta_Producer() {
|
|||||||
const list = proxies
|
const list = proxies
|
||||||
.filter((proxy) => {
|
.filter((proxy) => {
|
||||||
if (opts['include-unsupported-proxy']) return true;
|
if (opts['include-unsupported-proxy']) return true;
|
||||||
if (proxy.type === 'snell' && String(proxy.version) === '4') {
|
if (proxy.type === 'snell' && proxy.version >= 4) {
|
||||||
return false;
|
return false;
|
||||||
} else if (['juicity'].includes(proxy.type)) {
|
} else if (['juicity'].includes(proxy.type)) {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ export default function Shadowrocket_Producer() {
|
|||||||
const list = proxies
|
const list = proxies
|
||||||
.filter((proxy) => {
|
.filter((proxy) => {
|
||||||
if (opts['include-unsupported-proxy']) return true;
|
if (opts['include-unsupported-proxy']) return true;
|
||||||
if (proxy.type === 'snell' && String(proxy.version) === '4') {
|
if (proxy.type === 'snell' && proxy.version >= 4) {
|
||||||
return false;
|
return false;
|
||||||
} else if (['mieru'].includes(proxy.type)) {
|
} else if (['mieru'].includes(proxy.type)) {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ export default function Stash_Producer() {
|
|||||||
'2022-blake3-aes-128-gcm',
|
'2022-blake3-aes-128-gcm',
|
||||||
'2022-blake3-aes-256-gcm',
|
'2022-blake3-aes-256-gcm',
|
||||||
].includes(proxy.cipher)) ||
|
].includes(proxy.cipher)) ||
|
||||||
(proxy.type === 'snell' && String(proxy.version) === '4') ||
|
(proxy.type === 'snell' && proxy.version >= 4) ||
|
||||||
(proxy.type === 'vless' &&
|
(proxy.type === 'vless' &&
|
||||||
proxy['reality-opts'] &&
|
proxy['reality-opts'] &&
|
||||||
!['xtls-rprx-vision'].includes(proxy.flow))
|
!['xtls-rprx-vision'].includes(proxy.flow))
|
||||||
|
|||||||
Reference in New Issue
Block a user