mirror of
https://github.com/pi-hole/FTL.git
synced 2024-10-26 16:52:18 +02:00
Remove duplicates from client name suggestions
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -117,6 +117,9 @@ int api_queries_suggestions(struct ftl_conn *api)
|
||||
cJSON *client_ip = get_top_clients(api, count, false, true, false);
|
||||
cJSON *client_name = get_top_clients(api, count, false, true, true);
|
||||
|
||||
// Delete duplicate entries from client_name
|
||||
cJSON_unique_array(client_name);
|
||||
|
||||
// Get upstreams
|
||||
cJSON *upstream = get_top_upstreams(api, true);
|
||||
// Get types
|
||||
|
||||
Reference in New Issue
Block a user