diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/ndpi_main.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index 18ad8f5b6..c43fb23a8 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -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)) |