Tuesday, March 21, 2023

Clash自动切换最快节点

parsers: # array
- url: ${订阅地址}
yaml:
append-proxy-groups:
- name: "HKGroup"
type: url-test
url: 'http://cp.cloudflare.com/generate_204'
interval: 300
proxies:
- DIRECT
append-rules:
- DOMAIN-SUFFIX,v2ex.com,PROXY
commands:
- proxy-groups.(HKGroup).proxies=[]proxyNames|^.*(Hong Kong).*$
- proxy-groups.(PROXY).proxies.0+HKGroup
 
https://github.com/tindy2013/subconverter

用这个订阅地址转换,将自己的自定义规则写在 github 上或任意一个可以读取的地方
然后订阅转换后的地址 http://服务 ip:端口 /sub?target=clash&url=源订阅地址&config=规则地址 
proxy-groups:
  # 自动切换
  - name: "auto"
    type: url-test
    proxies:
      - us01_https
      #- us02_https
      #- hk_https
    # tolerance: 150
    url: 'https://www.google.com/'
    interval: 300
https://haoel.github.io/
https://lonhowe.cn/5116.html 

 

 

No comments: