mirror of
https://github.com/pi-hole/web.git
synced 2024-12-06 19:36:21 +01:00
Expose both name and IP of client
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
This commit is contained in:
+5
-1
@@ -353,7 +353,11 @@ else
|
||||
$client_names = array();
|
||||
foreach($return as $line)
|
||||
{
|
||||
$client_names[] = $line;
|
||||
$tmp = explode(" ", $line);
|
||||
$client_names[] = array(
|
||||
"name" => $tmp[0],
|
||||
"ip" => $tmp[1]
|
||||
);
|
||||
}
|
||||
|
||||
$result = array('clients' => $client_names);
|
||||
|
||||
Reference in New Issue
Block a user