mirror of
https://github.com/xmrig/xmrig.git
synced 2024-11-06 00:17:39 +00:00
Skip TLS pools if miner built without TLS support.
This commit is contained in:
parent
7da9e7a599
commit
1059189e2c
2 changed files with 17 additions and 9 deletions
|
@ -229,6 +229,12 @@ bool xmrig::CommonConfig::finalize()
|
||||||
pool.adjust(m_algorithm);
|
pool.adjust(m_algorithm);
|
||||||
|
|
||||||
if (pool.isValid() && pool.algorithm().isValid()) {
|
if (pool.isValid() && pool.algorithm().isValid()) {
|
||||||
|
# ifdef XMRIG_NO_TLS
|
||||||
|
if (pool.isTLS()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
# endif
|
||||||
|
|
||||||
m_activePools.push_back(std::move(pool));
|
m_activePools.push_back(std::move(pool));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -117,15 +117,17 @@ bool Pool::isCompatible(const xmrig::Algorithm &algorithm) const
|
||||||
|
|
||||||
bool Pool::isEqual(const Pool &other) const
|
bool Pool::isEqual(const Pool &other) const
|
||||||
{
|
{
|
||||||
return (m_nicehash == other.m_nicehash
|
return (m_nicehash == other.m_nicehash
|
||||||
&& m_keepAlive == other.m_keepAlive
|
&& m_tls == other.m_tls
|
||||||
&& m_port == other.m_port
|
&& m_keepAlive == other.m_keepAlive
|
||||||
&& m_algorithm == other.m_algorithm
|
&& m_port == other.m_port
|
||||||
&& m_host == other.m_host
|
&& m_algorithm == other.m_algorithm
|
||||||
&& m_password == other.m_password
|
&& m_fingerprint == other.m_fingerprint
|
||||||
&& m_rigId == other.m_rigId
|
&& m_host == other.m_host
|
||||||
&& m_url == other.m_url
|
&& m_password == other.m_password
|
||||||
&& m_user == other.m_user);
|
&& m_rigId == other.m_rigId
|
||||||
|
&& m_url == other.m_url
|
||||||
|
&& m_user == other.m_user);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue