Added new HTTP server (tiny wrapper on top of libuv + http_parser), removed libmicrohttpd support.

This commit is contained in:
XMRig 2019-03-29 12:33:11 +07:00
parent 725796a1ab
commit 01ad6bf2d9
29 changed files with 4312 additions and 237 deletions

View file

@ -46,7 +46,7 @@
#ifdef XMRIG_FEATURE_HTTP
# include "common/api/Httpd.h"
# include "api/Httpd.h"
#endif
@ -103,13 +103,7 @@ int xmrig::App::exec()
# endif
# ifdef XMRIG_FEATURE_HTTP
m_httpd = new Httpd(
m_controller->config()->http().port(),
m_controller->config()->http().token(),
false,
m_controller->config()->http().isRestricted()
);
m_httpd = new Httpd(m_controller);
m_httpd->start();
# endif