Added ability to return risk info in JSON format in ndpi_get_flow_risk_info()

This commit is contained in:
Luca
2022-05-30 17:54:30 +02:00
parent 48065d80e9
commit 34ede63c15
6 changed files with 61 additions and 27 deletions
+1 -1
View File
@@ -1044,7 +1044,7 @@ void process_ndpi_collected_info(struct ndpi_workflow * workflow, struct ndpi_fl
flow->info_type = INFO_INVALID;
s = ndpi_get_flow_risk_info(flow->ndpi_flow, out, sizeof(out));
s = ndpi_get_flow_risk_info(flow->ndpi_flow, out, sizeof(out), 0 /* text */);
if(s != NULL)
flow->risk_str = ndpi_strdup(s);