Remove duplicates from client name suggestions

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2024-07-18 16:55:17 +02:00
parent 5fdfeb9ef6
commit 0a971d39b8
4 changed files with 53 additions and 0 deletions
+3
View File
@@ -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