diff options
| author | Adam <Adam@anope.org> | 2012-10-24 19:32:26 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2012-10-24 19:32:26 -0400 |
| commit | 1057fa842144e84563ddd887beaeaebe8c4f8a47 (patch) | |
| tree | c43d1706df45866d5c13fcfb8333d3ee62bbdfd0 /modules/extra | |
| parent | fca9ec085e74efa005dd981f2af2a6d6fd78ce89 (diff) | |
BIND's forward ability did not work as I expected
because it will not forward non recursive queries.
So, added support for SOA, NS, and AXFR requests.
Diffstat (limited to 'modules/extra')
| -rw-r--r-- | modules/extra/httpd.h | 4 | ||||
| -rw-r--r-- | modules/extra/m_httpd.cpp | 2 | ||||
| -rw-r--r-- | modules/extra/m_proxyscan.cpp | 2 | ||||
| -rw-r--r-- | modules/extra/m_xmlrpc.cpp | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/modules/extra/httpd.h b/modules/extra/httpd.h index d9e800d13..490bf72bb 100644 --- a/modules/extra/httpd.h +++ b/modules/extra/httpd.h @@ -142,7 +142,7 @@ class HTTPClient : public ClientSocket, public BufferedSocket, public BinarySock virtual void SendReply(HTTPReply *) = 0; }; -class HTTPProvider : public Service, public ListenSocket +class HTTPProvider : public ListenSocket, public Service { Anope::string ip; unsigned short port; @@ -150,7 +150,7 @@ class HTTPProvider : public Service, public ListenSocket Anope::string ext_ip; std::vector<Anope::string> ext_headers; - HTTPProvider(Module *c, const Anope::string &n, const Anope::string &i, const unsigned short p) : Service(c, "HTTPProvider", n), ListenSocket(i, p, i.find(':') != Anope::string::npos), ip(i), port(p) { } + HTTPProvider(Module *c, const Anope::string &n, const Anope::string &i, const unsigned short p) : ListenSocket(i, p, i.find(':') != Anope::string::npos), Service(c, "HTTPProvider", n) { } const Anope::string &GetIP() const { diff --git a/modules/extra/m_httpd.cpp b/modules/extra/m_httpd.cpp index e802ed055..357e9fba9 100644 --- a/modules/extra/m_httpd.cpp +++ b/modules/extra/m_httpd.cpp @@ -257,7 +257,7 @@ class MyHTTPProvider : public HTTPProvider, public CallBack std::list<dynamic_reference<MyHTTPClient> > clients; public: - MyHTTPProvider(Module *c, const Anope::string &n, const Anope::string &i, const unsigned short p, const int t) : HTTPProvider(c, n, i, p), CallBack(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) : Socket(-1, i.find(':') != Anope::string::npos), HTTPProvider(c, n, i, p), CallBack(c, 10, Anope::CurTime, true), timeout(t) { } void Tick(time_t) anope_override { diff --git a/modules/extra/m_proxyscan.cpp b/modules/extra/m_proxyscan.cpp index e6ee4008a..00519c57f 100644 --- a/modules/extra/m_proxyscan.cpp +++ b/modules/extra/m_proxyscan.cpp @@ -41,7 +41,7 @@ class ProxyCallbackListener : public ListenSocket }; public: - ProxyCallbackListener(const Anope::string &b, int p) : ListenSocket(b, p, false) + ProxyCallbackListener(const Anope::string &b, int p) : Socket(-1, b.find(':') != Anope::string::npos), ListenSocket(b, p, false) { } diff --git a/modules/extra/m_xmlrpc.cpp b/modules/extra/m_xmlrpc.cpp index 138f73a2a..a804c35d2 100644 --- a/modules/extra/m_xmlrpc.cpp +++ b/modules/extra/m_xmlrpc.cpp @@ -88,7 +88,7 @@ class MyXMLRPCClientSocket : public XMLRPCClientSocket class MyXMLRPCListenSocket : public XMLRPCListenSocket { public: - MyXMLRPCListenSocket(const Anope::string &bindip, int port, bool ipv6, const Anope::string &u, const Anope::string &p, const std::vector<Anope::string> &a) : XMLRPCListenSocket(bindip, port, ipv6, u, p, a) + MyXMLRPCListenSocket(const Anope::string &bindip, int port, bool ipv6, const Anope::string &u, const Anope::string &p, const std::vector<Anope::string> &a) : Socket(-1, ipv6), XMLRPCListenSocket(bindip, port, ipv6, u, p, a) { listen_sockets.push_back(this); } |
