diff options
author | Vitaly Lavrov <vel21ripn@gmail.com> | 2024-02-05 21:44:45 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-05 19:44:45 +0100 |
commit | 4543385d107fcc5a7e8632e35d9a60bcc40cb4f4 (patch) | |
tree | 1832253db2bbfaef1949a879f3fe8a781977166f /src/lib/protocols/sd_rtn.c | |
parent | a4da4467ace84aa7dba718a94b0714aeb101ed9a (diff) |
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.
Diffstat (limited to 'src/lib/protocols/sd_rtn.c')
-rw-r--r-- | src/lib/protocols/sd_rtn.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/protocols/sd_rtn.c b/src/lib/protocols/sd_rtn.c index 92e95b77a..a40eb6240 100644 --- a/src/lib/protocols/sd_rtn.c +++ b/src/lib/protocols/sd_rtn.c @@ -51,7 +51,7 @@ static int ndpi_int_sd_rtn_dissect_sni(struct ndpi_flow_struct * const flow, return -1; } - ndpi_hostname_sni_set(flow, &payload[19], sni_len); + ndpi_hostname_sni_set(flow, &payload[19], sni_len, NDPI_HOSTNAME_NORM_ALL); return 0; } |