diff options
Diffstat (limited to 'util/net_help.c')
-rw-r--r-- | util/net_help.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/util/net_help.c b/util/net_help.c index 335ee74..e2b7c38 100644 --- a/util/net_help.c +++ b/util/net_help.c @@ -156,7 +156,12 @@ log_addr(enum verbosity_value v, const char* str, case AF_INET6: family="ip6"; sinaddr = &((struct sockaddr_in6*)addr)->sin6_addr; break; - case AF_LOCAL: family="local"; break; + case AF_LOCAL: + dest[0]=0; + (void)inet_ntop(af, sinaddr, dest, + (socklen_t)sizeof(dest)); + verbose(v, "%s local %s", str, dest); + return; /* do not continue and try to get port */ default: break; } if(inet_ntop(af, sinaddr, dest, (socklen_t)sizeof(dest)) == 0) { |