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 continue
} }
c.log.WithFields(logrus.Fields{ c.log.WithFields(logrus.Fields{
"name": d.Name(),
"latency": latency, "latency": latency,
"ver": ver, "ver": ver,
"proto": proto, "proto": proto,
"outbound": outbound.Name, "outbound": outbound.Name,
}).Debugln("Choose") }).Debugln("Choice")
if bestDialer == nil || latency < bestLatency { if bestDialer == nil || latency < bestLatency {
bestDialer = d bestDialer = d
bestLatency = latency bestLatency = latency

View File

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