aboutsummaryrefslogtreecommitdiff
path: root/example/ndpiReader.c
diff options
context:
space:
mode:
Diffstat (limited to 'example/ndpiReader.c')
-rw-r--r--example/ndpiReader.c4
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);
}
}