ndpiReader: fix export of DNS/BitTorrent attributes (#1985)

There is no BitTorrent hash in the DNS flows
This commit is contained in:
Ivan Nardi
2023-05-20 17:23:48 +02:00
committed by GitHub
parent 5e8f93c2d1
commit 86b56646b5
3 changed files with 26 additions and 0 deletions
+1
View File
@@ -1121,6 +1121,7 @@ void process_ndpi_collected_info(struct ndpi_workflow * workflow, struct ndpi_fl
if(flow->ndpi_flow->protos.dhcp.class_ident[0] != '\0')
flow->dhcp_class_ident = ndpi_strdup(flow->ndpi_flow->protos.dhcp.class_ident);
} else if(is_ndpi_proto(flow, NDPI_PROTOCOL_BITTORRENT) &&
!is_ndpi_proto(flow, NDPI_PROTOCOL_DNS) &&
!is_ndpi_proto(flow, NDPI_PROTOCOL_TLS)) {
u_int j;