Do not add hostnames less than 4 characters long
This commit is contained in:
parent
60e87f769a
commit
6827b6ad51
|
|
@ -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++;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue