mirror of
https://github.com/xmrig/xmrig.git
synced 2025-01-10 12:54:33 +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")) {
|
if (api.IsObject() && api.HasMember("port")) {
|
||||||
m_upgrade = true;
|
m_upgrade = true;
|
||||||
m_http.load(api);
|
m_http.load(api);
|
||||||
|
m_http.setEnabled(Json::getUint(api, "port") > 0);
|
||||||
|
m_http.setHost("0.0.0.0");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
m_http.load(json["http"]);
|
m_http.load(json["http"]);
|
||||||
|
|
|
@ -152,8 +152,6 @@ public:
|
||||||
virtual void getJSON(rapidjson::Document &doc) const = 0;
|
virtual void getJSON(rapidjson::Document &doc) const = 0;
|
||||||
virtual void parseJSON(const rapidjson::Value &json) = 0;
|
virtual void parseJSON(const rapidjson::Value &json) = 0;
|
||||||
virtual void setFileName(const char *fileName) = 0;
|
virtual void setFileName(const char *fileName) = 0;
|
||||||
|
|
||||||
static IConfig *create();
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue