Fix strace logging of ipv6 port

This commit is contained in:
Justine Tunney 2024-09-16 02:19:17 -07:00
parent 56ca00b022
commit 5aa970bc4e
No known key found for this signature in database
GPG key ID: BE714B4575D6E328

View file

@ -56,7 +56,7 @@ const char *_DescribeSockaddr(char buf[128], const struct sockaddr *sa,
p = stpcpy(p, ip);
*p++ = ']';
*p++ = ':';
p = FormatUint32(p, in6->sin6_port);
p = FormatUint32(p, ntohs(in6->sin6_port));
}
} else if (sa->sa_family == AF_UNIX &&
sasize >= sizeof(struct sockaddr_un)) {