diff --git a/LibreNMS/Util/Dns.php b/LibreNMS/Util/Dns.php index ff5b89922872..e04e2c63c2f2 100644 --- a/LibreNMS/Util/Dns.php +++ b/LibreNMS/Util/Dns.php @@ -62,6 +62,7 @@ public static function lookupIp(Device $device): ?string /** * Get all IPs for a hostname + * * @return string[] */ public function getAddresses(string $hostname, ?AddressFamily $family = null): array @@ -78,7 +79,7 @@ public function getAddresses(string $hostname, ?AddressFamily $family = null): a return []; } - return array_map(fn($info) => socket_addrinfo_explain($info)['ai_addr']['sin_addr'], $result); + return array_map(fn ($info) => socket_addrinfo_explain($info)['ai_addr']['sin_addr'], $result); } /**