diff --git a/lib/OperatingSystems/DefaultOs.php b/lib/OperatingSystems/DefaultOs.php index c81f4c3e..b25093fd 100644 --- a/lib/OperatingSystems/DefaultOs.php +++ b/lib/OperatingSystems/DefaultOs.php @@ -153,11 +153,13 @@ public function getNetworkInterfaces(): array { $data[] = $netInterface; foreach ($interface['unicast'] as $unicast) { - if ($unicast['family'] === self::AF_INET) { - $netInterface->addIPv4($unicast['address']); - } - if ($unicast['family'] === self::AF_INET6) { - $netInterface->addIPv6($unicast['address']); + if (isset($unicast['family'])) { + if ($unicast['family'] === self::AF_INET) { + $netInterface->addIPv4($unicast['address']); + } + if ($unicast['family'] === self::AF_INET6) { + $netInterface->addIPv6($unicast['address']); + } } }