mirror of
https://github.com/hybula/lookingglass.git
synced 2024-09-21 05:20:06 +00:00
Specify ipv4 for ping as the dns resolv of ping may default to ipv6 unless specified.
This commit is contained in:
parent
f968ffcf61
commit
8267094825
|
@ -167,7 +167,7 @@ class LookingGlass
|
||||||
*/
|
*/
|
||||||
public static function ping(string $host, int $count = 4): bool
|
public static function ping(string $host, int $count = 4): bool
|
||||||
{
|
{
|
||||||
return self::procExecute('ping -c' . $count . ' -w15', $host);
|
return self::procExecute('ping -4 -c' . $count . ' -w15', $host);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue