Skip to content

Commit e768e7b

Browse files
committed
feat: 优化GO2SOCKS5处理方式
1 parent cadf676 commit e768e7b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

_worker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6803,8 +6803,8 @@ function config_Html(token = "test", proxyhost = "") {
68036803
items.push({ label: 'CloudflareCDN访问模式', value: '自动获取' });
68046804
} else {
68056805
const cf2cdn = proxy.CFCDN.toLowerCase();
6806-
const go2socks5 = proxy.GO2SOCKS5.join('').toLowerCase();
6807-
const isGlobal = go2socks5.includes('all in') || go2socks5.includes('*') || go2socks5 === 'all in';
6806+
const go2socks5Array = proxy.GO2SOCKS5.map(item => item.toLowerCase());
6807+
const isGlobal = go2socks5Array.includes('all in') || go2socks5Array.includes('*');
68086808
68096809
if (cf2cdn === 'proxyip') {
68106810
items.push({ label: 'CloudflareCDN访问模式', value: 'ProxyIP' });

0 commit comments

Comments
 (0)