From 86b56646b532660a7efeb55498766e14ce8bc2c9 Mon Sep 17 00:00:00 2001 From: Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> Date: Sat, 20 May 2023 17:23:48 +0200 Subject: ndpiReader: fix export of DNS/BitTorrent attributes (#1985) There is no BitTorrent hash in the DNS flows --- example/reader_util.c | 1 + 1 file changed, 1 insertion(+) (limited to 'example') diff --git a/example/reader_util.c b/example/reader_util.c index 57b37ec4a..c36b62ca1 100644 --- a/example/reader_util.c +++ b/example/reader_util.c @@ -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; -- cgit v1.2.3