@@ 386-389 (lines=4) @@ | ||
383 | $dev->setName($NetworkAdapterConfiguration['Description']); |
|
384 | if (defined('PSI_SHOW_NETWORK_INFOS') && PSI_SHOW_NETWORK_INFOS) { |
|
385 | $dev->setInfo(preg_replace('/:/', '-', strtoupper($NetworkAdapterConfiguration['MACAddress']))); |
|
386 | if (isset($NetworkAdapterConfiguration['IPAddress'])) |
|
387 | foreach($NetworkAdapterConfiguration['IPAddress'] as $ipaddres) |
|
388 | if (($ipaddres!="0.0.0.0") && ($ipaddres!="::") && !preg_match('/^fe80::/i', $ipaddres)) |
|
389 | $dev->setInfo(($dev->getInfo()?$dev->getInfo().';':'').strtolower($ipaddres)); |
|
390 | } |
|
391 | ||
392 | break; |
|
@@ 429-432 (lines=4) @@ | ||
426 | $dev->setInfo(''); //multiple with the same name |
|
427 | } else { |
|
428 | $dev->setInfo(preg_replace('/:/', '-', strtoupper($NetworkAdapterConfiguration['MACAddress']))); |
|
429 | if (isset($NetworkAdapterConfiguration['IPAddress'])) |
|
430 | foreach($NetworkAdapterConfiguration['IPAddress'] as $ipaddres) |
|
431 | if (($ipaddres!="0.0.0.0") && !preg_match('/^fe80::/i', $ipaddres)) |
|
432 | $dev->setInfo(($dev->getInfo()?$dev->getInfo().';':'').strtolower($ipaddres)); |
|
433 | } |
|
434 | } |
|
435 | } |