summaryrefslogtreecommitdiff
path: root/modules/m_httpd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/m_httpd.cpp')
-rw-r--r--modules/m_httpd.cpp2
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
{