From 8edb2f133c2df808e5fa65052bc6734bdca655c1 Mon Sep 17 00:00:00 2001 From: Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> Date: Sat, 13 Apr 2024 14:12:20 +0200 Subject: STUN: add support for ipv6 in some metadata (#2389) --- example/ndpiReader.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'example') diff --git a/example/ndpiReader.c b/example/ndpiReader.c index 709fa3153..bf935b796 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -1527,11 +1527,11 @@ static void print_ndpi_address_port(FILE *out, const char *label, ndpi_address_p if(ap->is_ipv6) { inet_ntop(AF_INET6, &ap->address, buf, sizeof(buf)); + fprintf(out, "[%s: [%s]:%u]", label, buf, ap->port); } else { inet_ntop(AF_INET, &ap->address, buf, sizeof(buf)); + fprintf(out, "[%s: %s:%u]", label, buf, ap->port); } - - fprintf(out, "[%s: %s:%u]", label, buf, ap->port); } } -- cgit v1.2.3