Skip to content

Commit fa5f88a

Browse files
committed
fix: 修复 snell 版本过滤范围
1 parent 212aa77 commit fa5f88a

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sub-store",
3-
"version": "2.19.66",
3+
"version": "2.19.67",
44
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.",
55
"main": "src/main.js",
66
"scripts": {

backend/src/core/proxy-utils/producers/clash.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export default function Clash_Producer() {
4141
'chacha20-ietf-poly1305',
4242
'xchacha20-ietf-poly1305',
4343
].includes(proxy.cipher)) ||
44-
(proxy.type === 'snell' && String(proxy.version) === '4') ||
44+
(proxy.type === 'snell' && proxy.version >= 4) ||
4545
(proxy.type === 'vless' &&
4646
(typeof proxy.flow !== 'undefined' ||
4747
proxy['reality-opts']))

backend/src/core/proxy-utils/producers/clashmeta.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default function ClashMeta_Producer() {
66
const list = proxies
77
.filter((proxy) => {
88
if (opts['include-unsupported-proxy']) return true;
9-
if (proxy.type === 'snell' && String(proxy.version) === '4') {
9+
if (proxy.type === 'snell' && proxy.version >= 4) {
1010
return false;
1111
} else if (['juicity'].includes(proxy.type)) {
1212
return false;

backend/src/core/proxy-utils/producers/shadowrocket.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default function Shadowrocket_Producer() {
77
const list = proxies
88
.filter((proxy) => {
99
if (opts['include-unsupported-proxy']) return true;
10-
if (proxy.type === 'snell' && String(proxy.version) === '4') {
10+
if (proxy.type === 'snell' && proxy.version >= 4) {
1111
return false;
1212
} else if (['mieru'].includes(proxy.type)) {
1313
return false;

backend/src/core/proxy-utils/producers/stash.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export default function Stash_Producer() {
4343
'2022-blake3-aes-128-gcm',
4444
'2022-blake3-aes-256-gcm',
4545
].includes(proxy.cipher)) ||
46-
(proxy.type === 'snell' && String(proxy.version) === '4') ||
46+
(proxy.type === 'snell' && proxy.version >= 4) ||
4747
(proxy.type === 'vless' &&
4848
proxy['reality-opts'] &&
4949
!['xtls-rprx-vision'].includes(proxy.flow))

0 commit comments

Comments
 (0)