Skip to content

Commit

Permalink
- Fixes DNS gethostbyaddr
Browse files Browse the repository at this point in the history
  • Loading branch information
glushchenko committed Feb 29, 2024
1 parent ae30efd commit 50b3dab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Net/DNS.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 50b3dab

Please sign in to comment.