有好几个订阅,但是规则里面每家的proxy-group都不一样,干脆全给他覆盖了,不知道原来的clash内核有没有这个`"include-all-proxies":true,`
[ol]function main(config) { config['rules'] = [ // 自定义规则 'PROCESS-NAME,WeChat.exe,DIRECT', // 微信 'DOMAIN-SUFFIX,adobe.io,DIRECT', // Adobe 'DOMAIN-SUFFIX,*.adobe.io,REJECT', 'DOMAIN-SUFFIX,adobestats.io,REJECT', 'DOMAIN-SUFFIX,photo-api.adobe.io,DIRECT', 'DOMAIN-SUFFIX,home.581019.xyz,jww', 'DOMAIN-KEYWORD,winget,jww', 'GEOSITE,CN,DIRECT', 'GEOIP,CN,DIRECT', 'GEOSITE,geolocation-!cn,jww', 'MATCH,jww' ] config['proxy-groups'] = [ { "name": "jww", "type": "select", "proxies": ["自动选择"], "include-all-proxies": true, "url": "https://www.google.com/generate_204", }, { "name": "自动选择", "type": "url-test", "include-all-proxies": true, "url": "https://www.google.com/generate_204", }, ] return config;}[/ol]复制代码 |