From fc6980e0c9f4b9b34811830c2bf7084c251b30a0 Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Mon, 26 Oct 2015 13:43:38 +0100 Subject: Fix for #86 --- src/lib/protocols/tcp_udp.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/lib/protocols/tcp_udp.c') diff --git a/src/lib/protocols/tcp_udp.c b/src/lib/protocols/tcp_udp.c index 7ca276dca..de9700e4a 100644 --- a/src/lib/protocols/tcp_udp.c +++ b/src/lib/protocols/tcp_udp.c @@ -48,6 +48,9 @@ void ndpi_search_tcp_or_udp(struct ndpi_detection_module_struct *ndpi_struct, st u_int proto; struct ndpi_packet_struct *packet = &flow->packet; + if(flow->host_server_name[0] != '\0') + return; + if(ndpi_is_tor_flow(ndpi_struct, flow)) { ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_TOR, NDPI_PROTOCOL_UNKNOWN); return; -- cgit v1.2.3