Increase timeout for hostname check because rDNS servers are slow

This commit is contained in:
Laura Hausmann 2021-05-15 19:52:27 +02:00
parent 9174e5abcc
commit c01bc1c784
Signed by: zotan
GPG key ID: D044E84C5BE01605

View file

@ -14,7 +14,7 @@ function gethost($ip)
{
$ires = array();
$host = `host -s -W 1 $ip`;
$host = `host -s -W 5 $ip`;
$host = ($host ? end( explode(' ', trim(trim($host), '.'))) : $ip);
$ires = array();
if(in_array($host, Array('reached', 'record', '3(NXDOMAIN)')))
@ -31,4 +31,4 @@ function gethost($ip)
}
return $ires;
}
}