parent
92e632daf1
commit
94c16c3167
|
@ -21,7 +21,7 @@ func NetProbe(address string, timeout int) error {
|
|||
if timeout < 0 {
|
||||
timeout = MaxTimeout
|
||||
} else {
|
||||
timeout = Max(MaxTimeout, timeout)
|
||||
timeout = Min(MaxTimeout, timeout)
|
||||
}
|
||||
for tries := timeout; tries > 0; tries-- {
|
||||
pc, err := net.DialUDP("udp", nil, remoteUDPAddr)
|
||||
|
|
Loading…
Reference in New Issue