Do not add hostnames less than 4 characters long

This commit is contained in:
ValdikSS 2017-12-17 01:46:32 +03:00
parent 60e87f769a
commit 6827b6ad51

View File

@ -72,6 +72,8 @@ int blackwhitelist_load_list(const char *filename) {
line); line);
continue; continue;
} }
if (strlen(line) < 4)
continue;
if (add_hostname(line)) if (add_hostname(line))
cnt++; cnt++;
} }