summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/listensocket.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/listensocket.cpp b/src/listensocket.cpp
index 6ae598ad3..b0fce7b5b 100644
--- a/src/listensocket.cpp
+++ b/src/listensocket.cpp
@@ -78,7 +78,10 @@ void ListenSocket::AcceptInternal()
socklen_t sz = sizeof(server);
if (getsockname(incomingSockfd, &server.sa, &sz))
+ {
ServerInstance->Logs->Log("SOCKET", DEBUG, "Can't get peername: %s", strerror(errno));
+ irc::sockets::aptosa(bind_addr, bind_port, server);
+ }
/*
* XXX -