Don't add "self-select" field to generated config if it not supported.

This commit is contained in:
XMRig 2019-10-19 02:39:46 +07:00
parent 128c5f67ad
commit 6b40ede2bc

View file

@ -236,8 +236,9 @@ rapidjson::Value xmrig::Pool::toJSON(rapidjson::Document &doc) const
if (m_mode == MODE_DAEMON) {
obj.AddMember(StringRef(kDaemonPollInterval), m_pollInterval, allocator);
}
obj.AddMember(StringRef(kSelfSelect), m_daemon.url().toJSON(), allocator);
else {
obj.AddMember(StringRef(kSelfSelect), m_daemon.url().toJSON(), allocator);
}
return obj;
}