aboutsummaryrefslogtreecommitdiff
path: root/example/ndpiReader.c
diff options
context:
space:
mode:
authorLuca <deri@ntop.org>2024-01-16 07:25:03 +0100
committerLuca <deri@ntop.org>2024-01-16 07:25:03 +0100
commitca7df1db82e97954724f547c5966a5f99ad86e6b (patch)
tree14ed6ba7155d4e63350da16352bd9bf228fb6f89 /example/ndpiReader.c
parent1637a991a4561a4ad16b1e0822065a273c60781f (diff)
Improved ndpi_get_host_domain
Diffstat (limited to 'example/ndpiReader.c')
-rw-r--r--example/ndpiReader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c
index bea676427..c7f641650 100644
--- a/example/ndpiReader.c
+++ b/example/ndpiReader.c
@@ -5650,7 +5650,7 @@ void domainsUnitTest() {
assert(strcmp(ndpi_get_host_domain_suffix(ndpi_info_mod, "mail.apple.com"), "com") == 0);
assert(strcmp(ndpi_get_host_domain_suffix(ndpi_info_mod, "www.bbc.co.uk"), "co.uk") == 0);
- assert(strcmp(ndpi_get_host_domain(ndpi_info_mod, "www.chosei.chiba.jp"), "chosei.chiba.jp") == 0);
+ assert(strcmp(ndpi_get_host_domain(ndpi_info_mod, "www.chosei.chiba.jp"), "www.chosei.chiba.jp") == 0);
assert(strcmp(ndpi_get_host_domain(ndpi_info_mod, "www.unipi.it"), "unipi.it") == 0);
assert(strcmp(ndpi_get_host_domain(ndpi_info_mod, "mail.apple.com"), "apple.com") == 0);
assert(strcmp(ndpi_get_host_domain(ndpi_info_mod, "www.bbc.co.uk"), "bbc.co.uk") == 0);