diff options
author | Luca Deri <deri@ntop.org> | 2022-05-24 21:17:33 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2022-05-24 21:17:33 +0200 |
commit | 83e1ea25063f1c21d2b8d733611b23753567a12b (patch) | |
tree | dc330652714107862b58dc5e488fd9c25ffbe274 | |
parent | 0c703ef8ebe7e56178e0641d8a390c2607207256 (diff) |
Improved invalid host detection
-rw-r--r-- | src/lib/ndpi_utils.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/ndpi_utils.c b/src/lib/ndpi_utils.c index 8f3c03f72..3f27964c6 100644 --- a/src/lib/ndpi_utils.c +++ b/src/lib/ndpi_utils.c @@ -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 */ |