Skip to content

Commit 40a5f42

Browse files
committed
修复 bug:移除自动选择分组避免周期性测速浪费请求
删除 Clash/Sing-box/Surge/Loon/QuanX 配置中的 url-test 自动选择分组,各策略组保留节点选择、全球直连与全部节点。
1 parent bd1a27c commit 40a5f42

3 files changed

Lines changed: 19 additions & 31 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
- 订阅转换内部实现:Clash / Stash / Sing-box / Surge / Loon / Quantumult X 配置全部由 Worker 直接生成,不再依赖任何外部 sub-converter
3838
- 完整规则集:Clash 使用 Loyalsoldier `rule-providers`;Sing-box 使用 MetaCubeX SRS;Surge / Loon / QuanX 使用 ACL4SSR / blackmatrix7 远端规则
39-
- 各策略分组均包含「策略组 + 全部节点」,可直接切换具体节点
39+
- 各策略分组均包含「策略组 + 全部节点」,可直接切换具体节点(已移除「自动选择」url-test,避免周期性测速浪费请求)
4040
- 修复 Clash IPv6 节点 `server` 被解析为数组、代理组 `🎯 全球直连``🚀 节点选择` 循环引用等问题
4141
- 链接参数 ALPN 留空:生成的 VLESS / Trojan / xhttp 分享链接不再写死 `alpn=h3`,由客户端自行协商
4242
- KV 配置缓存:30s 短窗口 + 跨 isolate 版本键 `c_ver`,保存后无需刷新两次

少年你相信光吗

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

明文源吗

Lines changed: 17 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1615,9 +1615,9 @@
16151615
: ' - DIRECT';
16161616
const lines = [];
16171617
if (directFirst) {
1618-
lines.push(' - "🎯 全球直连"', ' - "🚀 节点选择"', ' - "♻️ 自动选择"');
1618+
lines.push(' - "🎯 全球直连"', ' - "🚀 节点选择"');
16191619
} else {
1620-
lines.push(' - "🚀 节点选择"', ' - "♻️ 自动选择"', ' - "🎯 全球直连"');
1620+
lines.push(' - "🚀 节点选择"', ' - "🎯 全球直连"');
16211621
}
16221622
for (const g of extraGroups) lines.push(` - ${yq(g)}`);
16231623
lines.push(nodeLines);
@@ -1630,8 +1630,8 @@
16301630
const sep = compact ? ',' : ', ';
16311631
const list = names.length ? names.join(sep) : 'DIRECT';
16321632
const parts = [];
1633-
if (directFirst) parts.push('🎯 全球直连', '🚀 节点选择', '♻️ 自动选择');
1634-
else parts.push('🚀 节点选择', '♻️ 自动选择', '🎯 全球直连');
1633+
if (directFirst) parts.push('🎯 全球直连', '🚀 节点选择');
1634+
else parts.push('🚀 节点选择', '🎯 全球直连');
16351635
parts.push(...extraGroups);
16361636
if (names.length) parts.push(list);
16371637
return parts.join(sep);
@@ -1811,16 +1811,8 @@
18111811
' - name: "🚀 节点选择"',
18121812
' type: select',
18131813
' proxies:',
1814-
' - "♻️ 自动选择"',
18151814
' - "🎯 全球直连"',
18161815
nodeOnly,
1817-
' - name: "♻️ 自动选择"',
1818-
' type: url-test',
1819-
' url: http://www.gstatic.com/generate_204',
1820-
' interval: 300',
1821-
' tolerance: 50',
1822-
' proxies:',
1823-
nodeOnly,
18241816
' - name: "🌍 国外媒体"',
18251817
' type: select',
18261818
' proxies:',
@@ -2060,19 +2052,18 @@
20602052
}
20612053
],
20622054
outbounds: [
2063-
{ type: 'selector', tag: 'select', outbounds: ['♻️ 自动选择', 'direct', ...outboundTags], default: '♻️ 自动选择' },
2064-
{ type: 'urltest', tag: '♻️ 自动选择', outbounds: outboundTags.length ? outboundTags : ['direct'], url: 'http://www.gstatic.com/generate_204', interval: '5m', tolerance: 50 },
2065-
{ type: 'selector', tag: '🌍 国外媒体', outbounds: ['select', '♻️ 自动选择', 'direct', ...outboundTags] },
2066-
{ type: 'selector', tag: '📲 电报信息', outbounds: ['select', '♻️ 自动选择', 'direct', ...outboundTags] },
2067-
{ type: 'selector', tag: '🌐 谷歌服务', outbounds: ['select', '♻️ 自动选择', 'direct', ...outboundTags] },
2068-
{ type: 'selector', tag: '🤖 OpenAI', outbounds: ['select', '♻️ 自动选择', 'direct', ...outboundTags] },
2069-
{ type: 'selector', tag: 'Ⓜ️ 微软服务', outbounds: ['direct', 'select', '♻️ 自动选择', ...outboundTags] },
2070-
{ type: 'selector', tag: '🍎 苹果服务', outbounds: ['direct', 'select', '♻️ 自动选择', ...outboundTags] },
2071-
{ type: 'selector', tag: '📺 哔哩哔哩', outbounds: ['direct', 'select', '♻️ 自动选择', ...outboundTags] },
2072-
{ type: 'selector', tag: '📹 油管视频', outbounds: ['select', '♻️ 自动选择', '🌍 国外媒体', 'direct', ...outboundTags] },
2073-
{ type: 'selector', tag: '🎬 奈飞视频', outbounds: ['select', '♻️ 自动选择', '🌍 国外媒体', 'direct', ...outboundTags] },
2055+
{ type: 'selector', tag: 'select', outbounds: ['direct', ...outboundTags], default: outboundTags[0] || 'direct' },
2056+
{ type: 'selector', tag: '🌍 国外媒体', outbounds: ['select', 'direct', ...outboundTags] },
2057+
{ type: 'selector', tag: '📲 电报信息', outbounds: ['select', 'direct', ...outboundTags] },
2058+
{ type: 'selector', tag: '🌐 谷歌服务', outbounds: ['select', 'direct', ...outboundTags] },
2059+
{ type: 'selector', tag: '🤖 OpenAI', outbounds: ['select', 'direct', ...outboundTags] },
2060+
{ type: 'selector', tag: 'Ⓜ️ 微软服务', outbounds: ['direct', 'select', ...outboundTags] },
2061+
{ type: 'selector', tag: '🍎 苹果服务', outbounds: ['direct', 'select', ...outboundTags] },
2062+
{ type: 'selector', tag: '📺 哔哩哔哩', outbounds: ['direct', 'select', ...outboundTags] },
2063+
{ type: 'selector', tag: '📹 油管视频', outbounds: ['select', '🌍 国外媒体', 'direct', ...outboundTags] },
2064+
{ type: 'selector', tag: '🎬 奈飞视频', outbounds: ['select', '🌍 国外媒体', 'direct', ...outboundTags] },
20742065
{ type: 'selector', tag: '🎯 全球直连', outbounds: ['direct'] },
2075-
{ type: 'selector', tag: '🐟 漏网之鱼', outbounds: ['select', '♻️ 自动选择', 'direct', ...outboundTags] },
2066+
{ type: 'selector', tag: '🐟 漏网之鱼', outbounds: ['select', 'direct', ...outboundTags] },
20762067
...nodes.map(nodeToOutbound),
20772068
{ type: 'direct', tag: 'direct' },
20782069
{ type: 'block', tag: 'block' },
@@ -2179,8 +2170,7 @@
21792170
lines.push('');
21802171
lines.push('[Proxy Group]');
21812172
const list = names.length ? names.join(', ') : 'DIRECT';
2182-
lines.push(`🚀 节点选择 = select, ♻️ 自动选择, 🎯 全球直连, ${list}`);
2183-
lines.push(`♻️ 自动选择 = url-test, ${list}, url=http://www.gstatic.com/generate_204, interval=300, tolerance=50`);
2173+
lines.push(`🚀 节点选择 = select, 🎯 全球直连, ${list}`);
21842174
lines.push(`🌍 国外媒体 = select, ${iniPolicyList(names)}`);
21852175
lines.push(`📺 哔哩哔哩 = select, ${iniPolicyList(names, { directFirst: true })}`);
21862176
lines.push(`📹 油管视频 = select, ${iniPolicyList(names, { extraGroups: ['🌍 国外媒体'] })}`);
@@ -2260,8 +2250,7 @@
22602250
lines.push('');
22612251
lines.push('[Proxy Group]');
22622252
const list = names.length ? names.join(',') : 'DIRECT';
2263-
lines.push(`🚀 节点选择 = select,♻️ 自动选择,🎯 全球直连,${list}`);
2264-
lines.push(`♻️ 自动选择 = url-test,${list},url=http://www.gstatic.com/generate_204,interval=300`);
2253+
lines.push(`🚀 节点选择 = select,🎯 全球直连,${list}`);
22652254
lines.push(`🌍 国外媒体 = select,${iniPolicyList(names, { compact: true })}`);
22662255
lines.push(`📺 哔哩哔哩 = select,${iniPolicyList(names, { directFirst: true, compact: true })}`);
22672256
lines.push(`📹 油管视频 = select,${iniPolicyList(names, { extraGroups: ['🌍 国外媒体'], compact: true })}`);
@@ -2338,7 +2327,6 @@
23382327
lines.push('[policy]');
23392328
const list = names.length ? names.join(', ') : 'direct';
23402329
lines.push(`static=🚀 节点选择, ${list}, direct, img-url=https://fastly.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Proxy.png`);
2341-
lines.push(`url-latency-benchmark=♻️ 自动选择, ${list}, check-interval=300, tolerance=50, img-url=https://fastly.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Auto.png`);
23422330
lines.push(`static=🌍 国外媒体, ${iniPolicyList(names)}, img-url=https://fastly.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/ForeignMedia.png`);
23432331
lines.push(`static=📺 哔哩哔哩, ${iniPolicyList(names, { directFirst: true })}, img-url=https://fastly.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/bilibili.png`);
23442332
lines.push(`static=📹 油管视频, ${iniPolicyList(names, { extraGroups: ['🌍 国外媒体'] })}, img-url=https://fastly.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/YouTube.png`);

0 commit comments

Comments
 (0)