aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols/dnscrypt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/protocols/dnscrypt.c')
-rw-r--r--src/lib/protocols/dnscrypt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/protocols/dnscrypt.c b/src/lib/protocols/dnscrypt.c
index c4e28323d..a77bade98 100644
--- a/src/lib/protocols/dnscrypt.c
+++ b/src/lib/protocols/dnscrypt.c
@@ -46,6 +46,7 @@ static void ndpi_search_dnscrypt(struct ndpi_detection_module_struct *ndpi_struc
ndpi_int_dnscrypt_add_connection(ndpi_struct, flow);
return;
}
+
/* dnscrypt protocol version 1 and 2: resolver ping */
if (packet->payload_packet_len > 13 + strlen(dnscrypt_initial) &&
strncasecmp((char*)packet->payload + 13, dnscrypt_initial, strlen(dnscrypt_initial)) == 0)
@@ -56,10 +57,9 @@ static void ndpi_search_dnscrypt(struct ndpi_detection_module_struct *ndpi_struc
if ((flow->packet_direction_counter[packet->packet_direction] >= 1 &&
flow->packet_direction_counter[1 - packet->packet_direction] >= 1) ||
- flow->packet_counter >= 10)
- {
+ flow->packet_counter >= 8) {
/*
- * Wait for at least one packet per direction, but not more then 10 packets.
+ * Wait for at least one packet per direction, up to a max
* Required as we need to wait for the server response which contains the ASCII pattern below.
*/
NDPI_EXCLUDE_PROTO(ndpi_struct, flow);