mirror of
https://github.com/xmrig/xmrig.git
synced 2024-12-22 19:49:36 +00:00
Sync changes.
This commit is contained in:
parent
24e4328915
commit
40d9f53743
2 changed files with 2 additions and 2 deletions
|
@ -355,6 +355,8 @@ void xmrig::CommonConfig::parseJSON(const rapidjson::Value &json)
|
|||
if (api.IsObject() && api.HasMember("port")) {
|
||||
m_upgrade = true;
|
||||
m_http.load(api);
|
||||
m_http.setEnabled(Json::getUint(api, "port") > 0);
|
||||
m_http.setHost("0.0.0.0");
|
||||
}
|
||||
else {
|
||||
m_http.load(json["http"]);
|
||||
|
|
|
@ -152,8 +152,6 @@ public:
|
|||
virtual void getJSON(rapidjson::Document &doc) const = 0;
|
||||
virtual void parseJSON(const rapidjson::Value &json) = 0;
|
||||
virtual void setFileName(const char *fileName) = 0;
|
||||
|
||||
static IConfig *create();
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue