From 50b3dab8569d358939e6a018cb5b1195baf6be82 Mon Sep 17 00:00:00 2001 From: glushchenko Date: Thu, 29 Feb 2024 16:32:26 +0200 Subject: [PATCH] - Fixes DNS gethostbyaddr --- src/Net/DNS.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Net/DNS.php b/src/Net/DNS.php index 9719c63..346d27f 100644 --- a/src/Net/DNS.php +++ b/src/Net/DNS.php @@ -81,7 +81,7 @@ public static function gethostbyaddr($ip, $options = []) fclose($handle); $rawData = substr($response, $requestsize + 2); - if ($rawData === false) { + if ($rawData === false || mb_strlen($rawData) === 0) { return $ip; }