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