mirror of
https://github.com/pi-hole/FTL.git
synced 2024-10-26 16:52:18 +02:00
Don't send ID field, it is not neded by the client. And even if it would be, it could easily be computed from nextID.
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -98,7 +98,6 @@ int api_ftl_dnsmasq_log(struct mg_connection *conn)
|
||||
}
|
||||
|
||||
cJSON *entry = JSON_NEW_OBJ();
|
||||
JSON_OBJ_ADD_NUMBER(entry, "id", idx);
|
||||
JSON_OBJ_ADD_NUMBER(entry, "timestamp", dnsmasq_log_stamps[i]);
|
||||
JSON_OBJ_REF_STR(entry, "message", dnsmasq_log_messages[i]);
|
||||
JSON_ARRAY_ADD_ITEM(log, entry);
|
||||
|
||||
Reference in New Issue
Block a user