This commit is contained in:
mzz2017 2023-02-09 13:42:52 +08:00
parent 2107aead00
commit 55bd309b6b
2 changed files with 3 additions and 2 deletions

View File

@ -203,11 +203,12 @@ func (c *ControlPlane) handlePkt(data []byte, src, dst netip.AddrPort, outboundI
continue
}
c.log.WithFields(logrus.Fields{
"name": d.Name(),
"latency": latency,
"ver": ver,
"proto": proto,
"outbound": outbound.Name,
}).Debugln("Choose")
}).Debugln("Choice")
if bestDialer == nil || latency < bestLatency {
bestDialer = d
bestLatency = latency

View File

@ -8,7 +8,7 @@ global {
# Node connectivity check.
# Url and dns should have both IPv4 and IPv6.
tcp_check_url: 'http://cp.cloudflare.com'
udp_check_dns: 'cloudflare-dns.com:53'
udp_check_dns: 'dns.google:53'
check_interval: 30s
# Value can be scheme://host:port or empty string ''.