mirror of
https://github.com/xmrig/xmrig.git
synced 2024-11-18 18:11:05 +00:00
Fix compile issues.
This commit is contained in:
parent
0d86e53a32
commit
1b9fbf1132
3 changed files with 6 additions and 6 deletions
|
@ -261,7 +261,7 @@ int64_t xmrig::Client::submit(const JobResult &result)
|
||||||
|
|
||||||
void xmrig::Client::onResolved(const Dns &dns, int status)
|
void xmrig::Client::onResolved(const Dns &dns, int status)
|
||||||
{
|
{
|
||||||
assert(client->m_listener != nullptr);
|
assert(m_listener != nullptr);
|
||||||
if (!m_listener) {
|
if (!m_listener) {
|
||||||
return reconnect();
|
return reconnect();
|
||||||
}
|
}
|
||||||
|
@ -846,7 +846,7 @@ void xmrig::Client::read(ssize_t nread)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
assert(client->m_listener != nullptr);
|
assert(m_listener != nullptr);
|
||||||
if (!m_listener) {
|
if (!m_listener) {
|
||||||
return reconnect();
|
return reconnect();
|
||||||
}
|
}
|
||||||
|
|
|
@ -164,7 +164,7 @@ void xmrig::Pools::print() const
|
||||||
Log::i()->text(GREEN_BOLD(" * ") WHITE_BOLD("POOL #%-7zu") "\x1B[1;%dm%s\x1B[0m variant " WHITE_BOLD("%s"),
|
Log::i()->text(GREEN_BOLD(" * ") WHITE_BOLD("POOL #%-7zu") "\x1B[1;%dm%s\x1B[0m variant " WHITE_BOLD("%s"),
|
||||||
i,
|
i,
|
||||||
color,
|
color,
|
||||||
pool.url(),
|
pool.url().data(),
|
||||||
pool.algorithm().variantName()
|
pool.algorithm().variantName()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -172,7 +172,7 @@ void xmrig::Pools::print() const
|
||||||
Log::i()->text(" * POOL #%-7zu%s%s variant=%s %s",
|
Log::i()->text(" * POOL #%-7zu%s%s variant=%s %s",
|
||||||
i,
|
i,
|
||||||
pool.isEnabled() ? "" : "-",
|
pool.isEnabled() ? "" : "-",
|
||||||
pool.url(),
|
pool.url().data(),
|
||||||
pool.algorithm().variantName(),
|
pool.algorithm().variantName(),
|
||||||
pool.isTLS() ? "TLS" : ""
|
pool.isTLS() ? "TLS" : ""
|
||||||
);
|
);
|
||||||
|
|
|
@ -150,13 +150,13 @@ bool xmrig::Client::Tls::send()
|
||||||
bool xmrig::Client::Tls::verify(X509 *cert)
|
bool xmrig::Client::Tls::verify(X509 *cert)
|
||||||
{
|
{
|
||||||
if (cert == nullptr) {
|
if (cert == nullptr) {
|
||||||
LOG_ERR("[%s] Failed to get server certificate", m_client->m_pool.url());
|
LOG_ERR("[%s] Failed to get server certificate", m_client->url());
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!verifyFingerprint(cert)) {
|
if (!verifyFingerprint(cert)) {
|
||||||
LOG_ERR("[%s] Failed to verify server certificate fingerprint", m_client->m_pool.url());
|
LOG_ERR("[%s] Failed to verify server certificate fingerprint", m_client->url());
|
||||||
|
|
||||||
const char *fingerprint = m_client->m_pool.fingerprint();
|
const char *fingerprint = m_client->m_pool.fingerprint();
|
||||||
if (strlen(m_fingerprint) == 64 && fingerprint != nullptr) {
|
if (strlen(m_fingerprint) == 64 && fingerprint != nullptr) {
|
||||||
|
|
Loading…
Reference in a new issue