summaryrefslogtreecommitdiff
path: root/src/modules/m_httpd.cpp
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2017-08-28 15:13:25 +0100
committerPeter Powell <petpow@saberuk.com>2017-09-12 15:05:24 +0100
commit3b595d39a50e38283768bc6ec8aeb9e73071224f (patch)
tree06a0e9e38726eaa7ece24bb288f85e318cca70a3 /src/modules/m_httpd.cpp
parent0a623f7a93b92171488d2d11902e42308c2e66c3 (diff)
Get rid of irc::sockets::satoap().
This function is being misused in all but one scenario. It isn't really worth keeping IMO.
Diffstat (limited to 'src/modules/m_httpd.cpp')
-rw-r--r--src/modules/m_httpd.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/modules/m_httpd.cpp b/src/modules/m_httpd.cpp
index 961a70473..05112eb9c 100644
--- a/src/modules/m_httpd.cpp
+++ b/src/modules/m_httpd.cpp
@@ -408,10 +408,8 @@ class ModuleHttpServer : public Module
{
if (from->bind_tag->getString("type") != "httpd")
return MOD_RES_PASSTHRU;
- int port;
- std::string incomingip;
- irc::sockets::satoap(*client, incomingip, port);
- sockets.push_front(new HttpServerSocket(nfd, incomingip, from, client, server, timeoutsec));
+
+ sockets.push_front(new HttpServerSocket(nfd, client->addr(), from, client, server, timeoutsec));
return MOD_RES_ALLOW;
}