feat: add check_tolerance to make node selection stable

This commit is contained in:
mzz2017
2023-02-09 21:16:51 +08:00
parent e3a71d0ee2
commit 158dfb2a27
6 changed files with 33 additions and 19 deletions

View File

@ -10,6 +10,8 @@ global {
tcp_check_url: 'http://cp.cloudflare.com'
udp_check_dns: 'dns.google:53'
check_interval: 30s
# Group will switch node only when new_latency <= old_latency - tolerance
check_tolerance: 50ms
# Value can be scheme://host:port or empty string ''.
# The scheme can be tcp/udp/tcp+udp. Empty string '' indicates as-is.