mirror of
https://github.com/pi-hole/web.git
synced 2026-05-08 09:39:05 +01:00
Use new client-names FTL response format
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
This commit is contained in:
+1
-3
@@ -353,9 +353,7 @@ else
|
||||
$client_names = array();
|
||||
foreach($return as $line)
|
||||
{
|
||||
$tmp = explode(" ",$line);
|
||||
// returned data is in format: "ID count hostname"
|
||||
$client_names[intval($tmp[0])] = $tmp[2];
|
||||
$client_names[] = $line;
|
||||
}
|
||||
|
||||
$result = array('clients' => $client_names);
|
||||
|
||||
Reference in New Issue
Block a user