From 8267094825921513aa46fa01b95478f62de387da Mon Sep 17 00:00:00 2001 From: Kim-Eirik Karlsen Date: Tue, 27 Dec 2022 00:23:52 +0100 Subject: [PATCH] Specify ipv4 for ping as the dns resolv of ping may default to ipv6 unless specified. --- LookingGlass.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LookingGlass.php b/LookingGlass.php index d0ba507..b4e303b 100644 --- a/LookingGlass.php +++ b/LookingGlass.php @@ -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); } /**