diff options
-rw-r--r-- | src/modules/m_httpd.cpp | 1 | ||||
-rw-r--r-- | src/modules/m_httpd_stats.cpp | 13 |
2 files changed, 3 insertions, 11 deletions
diff --git a/src/modules/m_httpd.cpp b/src/modules/m_httpd.cpp index d0c63d818..dc32c0227 100644 --- a/src/modules/m_httpd.cpp +++ b/src/modules/m_httpd.cpp @@ -109,6 +109,7 @@ class HttpSocket : public InspSocket { HTTPRequest httpr(request_type,uri,&headers,this,this->GetIP()); Event e((char*)&httpr, (Module*)HttpModule, "httpd_url"); + e.Send(); } return false; diff --git a/src/modules/m_httpd_stats.cpp b/src/modules/m_httpd_stats.cpp index c02a1a215..ef3bd062c 100644 --- a/src/modules/m_httpd_stats.cpp +++ b/src/modules/m_httpd_stats.cpp @@ -28,15 +28,7 @@ using namespace std; class ModuleHttpStats : public Module { - int port; - std::string host; - std::string bindip; - std::string indexfile; - - FileReader index; - - HttpSocket* http; - + Server* Srv; public: void ReadConfig() @@ -51,7 +43,7 @@ class ModuleHttpStats : public Module void OnEvent(Event* event) { - if (event->GetID() == "httpd_url") + if (event->GetEventID() == "httpd_url") { log(DEBUG,"HTTP URL!"); } @@ -69,7 +61,6 @@ class ModuleHttpStats : public Module virtual ~ModuleHttpStats() { - Srv->DelSocket(http); } virtual Version GetVersion() |