From 2e2d4c911a8ffce297a927addfe795a3b6b3d3fb Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Wed, 17 Nov 2021 22:41:35 +0100 Subject: BitTorrent detection improvements --- src/lib/ndpi_main.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/lib/ndpi_main.c') diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index 4fd952f77..993aac969 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -7252,6 +7252,11 @@ u_int8_t ndpi_extra_dissection_possible(struct ndpi_detection_module_struct *ndp if(flow->extra_packets_func) return(1); break; + + case NDPI_PROTOCOL_BITTORRENT: + if(flow->protos.bittorrent.hash[0] == '\0') + return(1); + break; } return(0); -- cgit v1.2.3