summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/log.c b/src/log.c
index 8809387..8513c79 100644
--- a/src/log.c
+++ b/src/log.c
@@ -72,7 +72,7 @@ static size_t snprint_peer_address(char *buffer, size_t size, const fastd_peer_a
case AF_INET6:
if (!bind_address && conf.hide_ip_addresses)
- return snprintf_safe(buffer, size, "[hidden]:%u", ntohs(address->in.sin_port));
+ return snprintf_safe(buffer, size, "[hidden]:%u", ntohs(address->in6.sin6_port));
if (inet_ntop(AF_INET6, &address->in6.sin6_addr, addr_buf, sizeof(addr_buf))) {
char ifname_buf[IF_NAMESIZE];
if (!iface && IN6_IS_ADDR_LINKLOCAL(&address->in6.sin6_addr))