mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
dhcpd: check server existence on more platforms
This commit is contained in:
1 parent
f96ad73c7d
commit
1f196c9cf5
12 files changed
+144
-86
No files matched your search
+2
-2
@@ -267,8 +267,8 @@ func (p *FwdrGroup) check(fwdr *Forwarder, checker Checker) {
|
||||
|
||||
wait = 1
|
||||
p.setLatency(fwdr, elapsed)
|
||||
log.F("[check] %s: %s(%d), SUCCESS. elapsed: %s, Latency: %s",
|
||||
p.name, fwdr.Addr(), fwdr.Priority(), elapsed, time.Duration(fwdr.Latency()))
|
||||
log.F("[check] %s: %s(%d), SUCCESS. Elapsed: %dms, Latency: %dms.",
|
||||
p.name, fwdr.Addr(), fwdr.Priority(), elapsed.Milliseconds(), time.Duration(fwdr.Latency()).Milliseconds())
|
||||
fwdr.Enable()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user