feat: 优化GO2SOCKS5处理方式

This commit is contained in:
cmliu
2025-09-10 04:23:13 +08:00
parent cadf6761ec
commit e768e7bb96

View File

@@ -6803,8 +6803,8 @@ function config_Html(token = "test", proxyhost = "") {
items.push({ label: 'CloudflareCDN访问模式', value: '自动获取' });
} else {
const cf2cdn = proxy.CFCDN.toLowerCase();
const go2socks5 = proxy.GO2SOCKS5.join('').toLowerCase();
const isGlobal = go2socks5.includes('all in') || go2socks5.includes('*') || go2socks5 === 'all in';
const go2socks5Array = proxy.GO2SOCKS5.map(item => item.toLowerCase());
const isGlobal = go2socks5Array.includes('all in') || go2socks5Array.includes('*');
if (cf2cdn === 'proxyip') {
items.push({ label: 'CloudflareCDN访问模式', value: 'ProxyIP' });