Further httpd integration

This commit is contained in:
fireice-uk
2017-01-16 00:59:05 +00:00
parent 2033ed3628
commit 9c9df104bd
7 changed files with 48 additions and 9 deletions
+2 -1
View File
@@ -7,6 +7,7 @@
#include "httpd.h"
#include "console.h"
#include "executor.h"
#include "jconf.h"
#ifdef _WIN32
#include "libmicrohttpd/microhttpd.h"
@@ -81,7 +82,7 @@ int httpd::req_handler(void * cls,
bool httpd::start_daemon()
{
d = MHD_start_daemon(MHD_USE_THREAD_PER_CONNECTION,
8100, NULL, NULL,
jconf::inst()->GetHttpdPort(), NULL, NULL,
&httpd::req_handler,
NULL, MHD_OPTION_END);