STUN: add support for ipv6 in some metadata (#2389)

This commit is contained in:
Ivan Nardi
2024-04-13 14:12:20 +02:00
committed by GitHub
parent f51dfc6973
commit 8edb2f133c
5 changed files with 20 additions and 10 deletions
+2 -2
View File
@@ -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);
}
}