aboutsummaryrefslogtreecommitdiff
path: root/src/lib/ndpi_domains.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ndpi_domains.c')
-rw-r--r--src/lib/ndpi_domains.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/ndpi_domains.c b/src/lib/ndpi_domains.c
index 3c59e3cd9..e7b283e54 100644
--- a/src/lib/ndpi_domains.c
+++ b/src/lib/ndpi_domains.c
@@ -47,6 +47,10 @@ int ndpi_load_domain_suffixes(struct ndpi_detection_module_struct *ndpi_str,
while((line = fgets(buf, sizeof(buf), fd)) != NULL) {
u_int offset, len;
+
+ /* Skip private domains */
+ if(strstr(line, "// ===END ICANN DOMAINS==="))
+ break;
/* Skip empty lines or comments */
if((line[0] == '\0') || (line[0] == '/') || (line[0] == '\n') || (line[0] == '\r'))