mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 12:48:29 +00:00
Fix a minor bug with api.php?getClientNames when hostnames are present more than once on the local network (maybe once IPv6, once IPv4)
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -386,12 +386,7 @@ function updateClientsOverTime() {
|
||||
for (key in data.clients)
|
||||
{
|
||||
if (!{}.hasOwnProperty.call(data.clients, key)) continue;
|
||||
if(key.indexOf("|") > -1)
|
||||
{
|
||||
var idx = key.indexOf("|");
|
||||
key = key.substr(0, idx);
|
||||
}
|
||||
labels.push(key);
|
||||
labels.push(data.clients[key]);
|
||||
}
|
||||
// Get colors from AdminLTE
|
||||
var colors = [];
|
||||
|
||||
Reference in New Issue
Block a user