summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2018-07-26 12:13:13 +0100
committerPeter Powell <petpow@saberuk.com>2018-07-26 12:35:22 +0100
commit09c5439c02f31e9875083e51966dad535af005a9 (patch)
tree3ed113f16f3e9b4640dd1c6a80a8e6af6f01da77 /src/users.cpp
parent97a1d6429a735eb279496df010d04e3f42aa4e22 (diff)
Add a module which implements the HAProxy PROXY v2 protocol.
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 04a8f959a..442770aca 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -315,6 +315,12 @@ void UserIOHandler::AddWriteBuf(const std::string &data)
WriteData(data);
}
+void UserIOHandler::OnSetEndPoint(const irc::sockets::sockaddrs& server, const irc::sockets::sockaddrs& client)
+{
+ memcpy(&user->server_sa, &server, sizeof(irc::sockets::sockaddrs));
+ user->SetClientIP(client);
+}
+
void UserIOHandler::OnError(BufferedSocketError)
{
ServerInstance->Users->QuitUser(user, getError());