aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols/tcp_udp.c
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2015-10-26 13:43:38 +0100
committerLuca Deri <deri@ntop.org>2015-10-26 13:43:38 +0100
commitfc6980e0c9f4b9b34811830c2bf7084c251b30a0 (patch)
tree99af94ff7afe09854bea1582b7439147f70a3c99 /src/lib/protocols/tcp_udp.c
parent7a95a21e098ce8d73479f0a3d0753b60e312fa20 (diff)
Fix for #86
Diffstat (limited to 'src/lib/protocols/tcp_udp.c')
-rw-r--r--src/lib/protocols/tcp_udp.c3
1 files changed, 3 insertions, 0 deletions
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;