Выяснилось, что в lib/general.class.php в функции function ping($host)
нужно поменять строчку
Код: Выделить всё
ping -c 1 -w 5Код: Выделить всё
ping -c 1 -t 5Код: Выделить всё
function ping($host)
{
if (IsWindowsOS())
exec(sprintf('ping -n 1 %s', escapeshellarg($host)), $res, $rval);
elseif (substr(php_uname(), 0, 7) === "FreeBSD")
exec(sprintf('ping -c 1 -t 5 %s', escapeshellarg($host)), $res, $rval);
else
exec(sprintf('ping -c 1 -W 5 %s', escapeshellarg($host)), $res, $rval);
return $rval === 0 && preg_match('/ttl/is', join('', $res));
}Код: Выделить всё
elseif (substr(php_uname(), 0, 7) === "FreeBSD")
exec(sprintf('ping -c 1 -t 5 %s', escapeshellarg($host)), $res, $rval);P.S. во FreeBSD -W таймаут в миллисекундах.