diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/socket.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/socket.cpp b/src/socket.cpp index 16cdebae6..e48184694 100644 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -111,7 +111,7 @@ void ListenSocket::HandleEvent(EventType, int) if (this->family == AF_INET6) { in_port = ntohs(((sockaddr_in6*)sock_us)->sin6_port); - inet_ntop(AF_INET6, &((const sockaddr_in6*)ip)->sin6_addr, buf, sizeof(buf)); + inet_ntop(AF_INET6, &((const sockaddr_in6*)client)->sin6_addr, buf, sizeof(buf)); socklen_t raddrsz = sizeof(sockaddr_in6); if (getpeername(incomingSockfd, (sockaddr*) raddr, &raddrsz) == 0) inet_ntop(AF_INET6, &((const sockaddr_in6*)raddr)->sin6_addr, target, sizeof(target)); |