Normalization of host_server_name (#2299)
* Normalization of host_server_name The ndpi_hostname_sni_set() function replaces all non-printable characters with the "?" character and removing whitespace characters at the end of the line. * Added conditional hostname normalization.
This commit is contained in:
@@ -180,7 +180,7 @@ static void ndpi_search_dhcp_udp(struct ndpi_detection_module_struct *ndpi_struc
|
||||
NDPI_LOG_DBG2(ndpi_struct, "[DHCP] '%.*s'\n",name,len);
|
||||
// while(j < len) { printf( "%c", name[j]); j++; }; printf("\n");
|
||||
#endif
|
||||
ndpi_hostname_sni_set(flow, name, len);
|
||||
ndpi_hostname_sni_set(flow, name, len, NDPI_HOSTNAME_NORM_ALL);
|
||||
}
|
||||
|
||||
i += len + 2;
|
||||
|
||||
Reference in New Issue
Block a user