Ignore TLD .local .lan and .home in DGA domain check

This commit is contained in:
Luca Deri
2021-03-26 15:53:04 +01:00
parent a6029d250d
commit ffbce931b9
+6 -1
View File
@@ -7318,7 +7318,12 @@ uint8_t ndpi_connection_tracking(struct ndpi_detection_module_struct *ndpi_str,
if((!name)
|| (strchr(name, '_') != NULL)
|| (endsWith(name, "in-addr.arpa", 12)))
|| (endsWith(name, "in-addr.arpa", 12))
/* Ignore TLD .local .lan and .home */
|| (endsWith(name, ".local", 6))
|| (endsWith(name, ".lan", 4))
|| (endsWith(name, ".home", 5))
)
return(0);
if(flow && (flow->packet.detected_protocol_stack[1] != NDPI_PROTOCOL_UNKNOWN))