diff --git a/dnscrypt-proxy/netprobe_others.go b/dnscrypt-proxy/netprobe_others.go index 1e5a5508..a56e5d07 100644 --- a/dnscrypt-proxy/netprobe_others.go +++ b/dnscrypt-proxy/netprobe_others.go @@ -10,7 +10,7 @@ import ( ) func NetProbe(address string, timeout int) error { - if len(address) <= 0 || timeout <= 0 { + if len(address) <= 0 || timeout == 0 { return nil } remoteUDPAddr, err := net.ResolveUDPAddr("udp", address)