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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -118,9 +118,11 @@ 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_tls == other.m_tls
|
||||||
&& m_keepAlive == other.m_keepAlive
|
&& m_keepAlive == other.m_keepAlive
|
||||||
&& m_port == other.m_port
|
&& m_port == other.m_port
|
||||||
&& m_algorithm == other.m_algorithm
|
&& m_algorithm == other.m_algorithm
|
||||||
|
&& m_fingerprint == other.m_fingerprint
|
||||||
&& m_host == other.m_host
|
&& m_host == other.m_host
|
||||||
&& m_password == other.m_password
|
&& m_password == other.m_password
|
||||||
&& m_rigId == other.m_rigId
|
&& m_rigId == other.m_rigId
|
||||||
|
|
Loading…
Reference in a new issue