Clash上添加了很多节点,有的会timeout ,但是需要看哪个节点速度更快,才能进行选择,能不能系统自己选择速度最快的节点呢?博主找到一个自动切换到网速最快的节点设置方法(直接搬运的英文说明,懒得翻译了)。
原文地址:https://lancellc.gitbook.io/clash/clash-config-file/proxy-groups/auto
How to config?
Edit config.yaml with example:
1 2 3 4 5 6 7 8 9 10 11 12 |
proxy-groups: - name: "auto" type: url-test proxies: - ss1 - ss2 - vmess1 url: 'http://www.**.com/generate_204' interval: 300 #tolerance: 50 #lazy: true #disable-udp: true |
url
A url will be used for benchmarking the latency. Recommand http.
interval
Retest the latency after several seconds.
name
the name of the group
type
the type of group, auto group must be auto
proxies
included proxies. provider must in use
tolerance
Clash will only change proxy when the latency of the new Proxy is further below the tolerance plus the current delay of the old one. The default value is 0ms, and not necessary.
lazy
when lazy open, proxy group and proxy provider that have not been used during the cycle will not be speed tested.
disable-udp
disable udp traffic on this group.