summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-09-08 10:43:00 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-09-08 10:43:00 +0000
commit0e07fc2e9e69270a110d8dc07007498b4d03b8b0 (patch)
tree5fdeae72b8a25f1bec3a05553e69e320bd1a79c5 /src
parent28fbe778316add7688284a0612693be4a129581d (diff)
Add incoming IP to OnAcceptReady
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10467 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/listensocket.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/listensocket.cpp b/src/listensocket.cpp
index 7c679c1d3..07ff2886e 100644
--- a/src/listensocket.cpp
+++ b/src/listensocket.cpp
@@ -148,7 +148,7 @@ void ListenSocket::AcceptInternal()
ServerInstance->SE->NonBlocking(incomingSockfd);
ServerInstance->stats->statsAccept++;
- this->OnAcceptReady(target, incomingSockfd);
+ this->OnAcceptReady(target, incomingSockfd, buf);
}
void ListenSocket::HandleEvent(EventType e, int err)
@@ -167,7 +167,7 @@ void ListenSocket::HandleEvent(EventType e, int err)
}
}
-void ListenSocket::OnAcceptReady(const std::string &ipconnectedto, int nfd)
+void ListenSocket::OnAcceptReady(const std::string &ipconnectedto, int nfd, const std::string &incomingip)
{
ServerInstance->Users->AddUser(ServerInstance, nfd, bind_port, false, this->family, client, ipconnectedto);
}