diff options
author | Sadie Powell <sadie@witchery.services> | 2023-11-26 13:26:38 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2023-11-26 13:26:38 +0000 |
commit | 2d2d1972e965ff41b9e79a53b2bc7e739f798000 (patch) | |
tree | 7e99842e03c78ee6db7d940de586b71eed5abe67 /modules/m_httpd.cpp | |
parent | 2b21264fb02e59662365ae4aa4f88647b4ea4dc8 (diff) |
Fix some modules that weren't converted to the new socket ctor.
Closes #330.
Diffstat (limited to 'modules/m_httpd.cpp')
-rw-r--r-- | modules/m_httpd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/m_httpd.cpp b/modules/m_httpd.cpp index 5edd891ab..e1f3cceba 100644 --- a/modules/m_httpd.cpp +++ b/modules/m_httpd.cpp @@ -289,7 +289,7 @@ class MyHTTPProvider : public HTTPProvider, public Timer std::list<Reference<MyHTTPClient> > clients; public: - MyHTTPProvider(Module *c, const Anope::string &n, const Anope::string &i, const unsigned short p, const int t, bool s) : Socket(-1, i.find(':') != Anope::string::npos), HTTPProvider(c, n, i, p, s), Timer(c, 10, Anope::CurTime, true), timeout(t) { } + MyHTTPProvider(Module *c, const Anope::string &n, const Anope::string &i, const unsigned short p, const int t, bool s) : Socket(-1, i.find(':') == Anope::string::npos ? AF_INET : AF_INET6), HTTPProvider(c, n, i, p, s), Timer(c, 10, Anope::CurTime, true), timeout(t) { } void Tick(time_t) override { |