Skip to content
Snippets Groups Projects
Commit 31a016f4 authored by Tibo's avatar Tibo
Browse files

show IP addresses of server

parent b8d270c7
No related branches found
No related tags found
No related merge requests found
Pipeline #12884 passed
......@@ -89,8 +89,10 @@ class ServerInfoParser
$ifconfig = new \App\Sensor\Ifconfig();
$interfaces = $ifconfig->parseIfconfig($string);
return array_map(
function(Sensor\NetworkInterface $interface) {return $interface->address; },
$interfaces);
function (Sensor\NetworkInterface $interface) {
return $interface->address;
},
$interfaces
);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment