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
|
||||
{
|
||||
return self::procExecute('ping -c' . $count . ' -w15', $host);
|
||||
return self::procExecute('ping -4 -c' . $count . ' -w15', $host);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user