We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 559b7c2 + a20ab02 commit bc49b2eCopy full SHA for bc49b2e
lib/OperatingSystems/DefaultOs.php
@@ -153,11 +153,13 @@ public function getNetworkInterfaces(): array {
153
$data[] = $netInterface;
154
155
foreach ($interface['unicast'] as $unicast) {
156
- if ($unicast['family'] === self::AF_INET) {
157
- $netInterface->addIPv4($unicast['address']);
158
- }
159
- if ($unicast['family'] === self::AF_INET6) {
160
- $netInterface->addIPv6($unicast['address']);
+ if (isset($unicast['family'])) {
+ if ($unicast['family'] === self::AF_INET) {
+ $netInterface->addIPv4($unicast['address']);
+ }
+ if ($unicast['family'] === self::AF_INET6) {
161
+ $netInterface->addIPv6($unicast['address']);
162
163
}
164
165
0 commit comments