diff options
author | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2024-04-13 14:12:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-13 14:12:20 +0200 |
commit | 8edb2f133c2df808e5fa65052bc6734bdca655c1 (patch) | |
tree | 474339398f8b01377c9e4202136f8512e100bec0 /example/ndpiReader.c | |
parent | f51dfc69730a2e123b9a48d378d4685b981324a4 (diff) |
STUN: add support for ipv6 in some metadata (#2389)
Diffstat (limited to 'example/ndpiReader.c')
-rw-r--r-- | example/ndpiReader.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); } } |