Sync changes.

This commit is contained in:
XMRig 2019-04-01 00:31:46 +07:00
parent 24e4328915
commit 40d9f53743
2 changed files with 2 additions and 2 deletions

View file

@ -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"]);

View file

@ -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();
};