Added new HTTP server (tiny wrapper on top of libuv + http_parser), removed libmicrohttpd support.
This commit is contained in:
parent
725796a1ab
commit
01ad6bf2d9
29 changed files with 4312 additions and 237 deletions
10
src/App.cpp
10
src/App.cpp
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue