summaryrefslogtreecommitdiff
path: root/src/modules/m_httpd.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-05-12 19:06:36 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-05-12 19:06:36 +0000
commitdfdbcc2939dff8311bd38046f6be518021bcede1 (patch)
treee364116c8e8663af1b86d7b5821b8c4653f2a42b /src/modules/m_httpd.cpp
parent46f43132aadf89cbb362803335018bd96e0ab4dc (diff)
Skeleton ACL module, and hooks for it. This will provide ip restrictions, passwording etc for httpd modules
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9709 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_httpd.cpp')
-rw-r--r--src/modules/m_httpd.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/modules/m_httpd.cpp b/src/modules/m_httpd.cpp
index eff9a7ad2..ee4544371 100644
--- a/src/modules/m_httpd.cpp
+++ b/src/modules/m_httpd.cpp
@@ -339,12 +339,17 @@ class HttpServerSocket : public BufferedSocket
{
claimed = false;
HTTPRequest httpr(request_type,uri,&headers,this,this->GetIP(),postdata);
- Event e((char*)&httpr, (Module*)HttpModule, "httpd_url");
- e.Send(this->Instance);
+ Event acl((char*)&httpr, (Module*)HttpModule, "httpd_acl");
+ acl.Send(this->Instance);
if (!claimed)
{
- SendHTTPError(404);
- Instance->SE->WantWrite(this);
+ Event e((char*)&httpr, (Module*)HttpModule, "httpd_url");
+ e.Send(this->Instance);
+ if (!claimed)
+ {
+ SendHTTPError(404);
+ Instance->SE->WantWrite(this);
+ }
}
}
}