|
1615 | 1615 | : ' - DIRECT'; |
1616 | 1616 | const lines = []; |
1617 | 1617 | if (directFirst) { |
1618 | | - lines.push(' - "🎯 全球直连"', ' - "🚀 节点选择"', ' - "♻️ 自动选择"'); |
| 1618 | + lines.push(' - "🎯 全球直连"', ' - "🚀 节点选择"'); |
1619 | 1619 | } else { |
1620 | | - lines.push(' - "🚀 节点选择"', ' - "♻️ 自动选择"', ' - "🎯 全球直连"'); |
| 1620 | + lines.push(' - "🚀 节点选择"', ' - "🎯 全球直连"'); |
1621 | 1621 | } |
1622 | 1622 | for (const g of extraGroups) lines.push(` - ${yq(g)}`); |
1623 | 1623 | lines.push(nodeLines); |
|
1630 | 1630 | const sep = compact ? ',' : ', '; |
1631 | 1631 | const list = names.length ? names.join(sep) : 'DIRECT'; |
1632 | 1632 | const parts = []; |
1633 | | - if (directFirst) parts.push('🎯 全球直连', '🚀 节点选择', '♻️ 自动选择'); |
1634 | | - else parts.push('🚀 节点选择', '♻️ 自动选择', '🎯 全球直连'); |
| 1633 | + if (directFirst) parts.push('🎯 全球直连', '🚀 节点选择'); |
| 1634 | + else parts.push('🚀 节点选择', '🎯 全球直连'); |
1635 | 1635 | parts.push(...extraGroups); |
1636 | 1636 | if (names.length) parts.push(list); |
1637 | 1637 | return parts.join(sep); |
|
1811 | 1811 | ' - name: "🚀 节点选择"', |
1812 | 1812 | ' type: select', |
1813 | 1813 | ' proxies:', |
1814 | | - ' - "♻️ 自动选择"', |
1815 | 1814 | ' - "🎯 全球直连"', |
1816 | 1815 | 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, |
1824 | 1816 | ' - name: "🌍 国外媒体"', |
1825 | 1817 | ' type: select', |
1826 | 1818 | ' proxies:', |
|
2060 | 2052 | } |
2061 | 2053 | ], |
2062 | 2054 | 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] }, |
2074 | 2065 | { type: 'selector', tag: '🎯 全球直连', outbounds: ['direct'] }, |
2075 | | - { type: 'selector', tag: '🐟 漏网之鱼', outbounds: ['select', '♻️ 自动选择', 'direct', ...outboundTags] }, |
| 2066 | + { type: 'selector', tag: '🐟 漏网之鱼', outbounds: ['select', 'direct', ...outboundTags] }, |
2076 | 2067 | ...nodes.map(nodeToOutbound), |
2077 | 2068 | { type: 'direct', tag: 'direct' }, |
2078 | 2069 | { type: 'block', tag: 'block' }, |
|
2179 | 2170 | lines.push(''); |
2180 | 2171 | lines.push('[Proxy Group]'); |
2181 | 2172 | 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}`); |
2184 | 2174 | lines.push(`🌍 国外媒体 = select, ${iniPolicyList(names)}`); |
2185 | 2175 | lines.push(`📺 哔哩哔哩 = select, ${iniPolicyList(names, { directFirst: true })}`); |
2186 | 2176 | lines.push(`📹 油管视频 = select, ${iniPolicyList(names, { extraGroups: ['🌍 国外媒体'] })}`); |
|
2260 | 2250 | lines.push(''); |
2261 | 2251 | lines.push('[Proxy Group]'); |
2262 | 2252 | 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}`); |
2265 | 2254 | lines.push(`🌍 国外媒体 = select,${iniPolicyList(names, { compact: true })}`); |
2266 | 2255 | lines.push(`📺 哔哩哔哩 = select,${iniPolicyList(names, { directFirst: true, compact: true })}`); |
2267 | 2256 | lines.push(`📹 油管视频 = select,${iniPolicyList(names, { extraGroups: ['🌍 国外媒体'], compact: true })}`); |
|
2338 | 2327 | lines.push('[policy]'); |
2339 | 2328 | const list = names.length ? names.join(', ') : 'direct'; |
2340 | 2329 | 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`); |
2342 | 2330 | lines.push(`static=🌍 国外媒体, ${iniPolicyList(names)}, img-url=https://fastly.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/ForeignMedia.png`); |
2343 | 2331 | lines.push(`static=📺 哔哩哔哩, ${iniPolicyList(names, { directFirst: true })}, img-url=https://fastly.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/bilibili.png`); |
2344 | 2332 | lines.push(`static=📹 油管视频, ${iniPolicyList(names, { extraGroups: ['🌍 国外媒体'] })}, img-url=https://fastly.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/YouTube.png`); |
|
0 commit comments