mirror of
https://github.com/daeuniverse/dae.git
synced 2025-01-30 09:31:29 +07:00
chore
This commit is contained in:
parent
2107aead00
commit
55bd309b6b
@ -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
|
||||||
|
@ -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 ''.
|
||||||
|
Loading…
Reference in New Issue
Block a user