mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 11:37:35 +00:00
Fix strace logging of ipv6 port
This commit is contained in:
parent
56ca00b022
commit
5aa970bc4e
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ const char *_DescribeSockaddr(char buf[128], const struct sockaddr *sa,
|
||||||
p = stpcpy(p, ip);
|
p = stpcpy(p, ip);
|
||||||
*p++ = ']';
|
*p++ = ']';
|
||||||
*p++ = ':';
|
*p++ = ':';
|
||||||
p = FormatUint32(p, in6->sin6_port);
|
p = FormatUint32(p, ntohs(in6->sin6_port));
|
||||||
}
|
}
|
||||||
} else if (sa->sa_family == AF_UNIX &&
|
} else if (sa->sa_family == AF_UNIX &&
|
||||||
sasize >= sizeof(struct sockaddr_un)) {
|
sasize >= sizeof(struct sockaddr_un)) {
|
||||||
|
|
Loading…
Reference in a new issue