mirror of
https://github.com/xmrig/xmrig.git
synced 2026-01-25 15:42:59 -05:00
Added new HTTP server (tiny wrapper on top of libuv + http_parser), removed libmicrohttpd support.
This commit is contained in:
@@ -25,7 +25,6 @@
|
||||
|
||||
#include "3rdparty/rapidjson/document.h"
|
||||
#include "base/io/Json.h"
|
||||
#include "base/io/log/Log.h"
|
||||
#include "base/net/http/Http.h"
|
||||
|
||||
|
||||
@@ -92,18 +91,6 @@ void xmrig::Http::load(const rapidjson::Value &http)
|
||||
}
|
||||
|
||||
|
||||
void xmrig::Http::print() const
|
||||
{
|
||||
# ifdef XMRIG_FEATURE_API
|
||||
if (!isEnabled()) {
|
||||
return;
|
||||
}
|
||||
|
||||
Log::print(GREEN_BOLD(" * ") WHITE_BOLD("%-13s") BLUE_BOLD("http://%s:%d"), "HTTP API", host().data(), port());
|
||||
# endif
|
||||
}
|
||||
|
||||
|
||||
void xmrig::Http::setPort(int port)
|
||||
{
|
||||
if (port >= 0 && port <= 65536) {
|
||||
|
||||
Reference in New Issue
Block a user