feat: support to give fixed ip for tcp_check_url and udp_check_dns

This commit is contained in:
mzz2017
2023-04-29 01:08:46 +08:00
parent 7948ba044c
commit 9493b9a0aa
4 changed files with 60 additions and 17 deletions

View File

@ -8,14 +8,17 @@ global {
# Node connectivity check.
# Host of URL should have both IPv4 and IPv6 if you have double stack in local.
# First is URL, others are IP addresses if given.
# Considering traffic consumption, it is recommended to choose a site with anycast IP and less response.
#tcp_check_url: 'http://keep-alv.google.com/generate_204'
tcp_check_url: 'http://gstatic.com/generate_204'
#tcp_check_url: 'http://cp.cloudflare.com'
tcp_check_url: 'http://cp.cloudflare.com,1.1.1.1,2606:4700:4700::1111'
# This DNS will be used to check UDP connectivity of nodes. And if dns_upstream below contains tcp, it also be used to check
# TCP DNS connectivity of nodes.
# First is URL, others are IP addresses if given.
# This DNS should have both IPv4 and IPv6 if you have double stack in local.
udp_check_dns: 'dns.google.com:53'
#udp_check_dns: 'dns.google.com:53'
udp_check_dns: 'dns.google.com:53,8.8.8.8,2001:4860:4860::8888'
check_interval: 30s