Improved invalid host detection

This commit is contained in:
Luca Deri
2022-05-24 21:17:33 +02:00
parent 0c703ef8eb
commit 83e1ea2506
+1
View File
@@ -2277,6 +2277,7 @@ int ndpi_is_valid_hostname(char * const str, size_t len) {
for (size_t i = 0; i < len; ++i) {
if((str[i] == '.')
|| (str[i] == '-')
|| (str[i] == '_')
|| (str[i] == ':')
)
continue; /* Used in hostnames */