mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-09 16:52:40 -05:00
Show TLS version.
This commit is contained in:
@@ -186,9 +186,15 @@ bool Client::disconnect()
|
||||
}
|
||||
|
||||
|
||||
bool Client::isTLS() const
|
||||
const char *Client::tlsVersion() const
|
||||
{
|
||||
return m_pool.isTLS() && m_tls;
|
||||
# ifndef XMRIG_NO_TLS
|
||||
if (isTLS()) {
|
||||
return m_tls->tlsVersion();
|
||||
}
|
||||
# endif
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
||||
@@ -277,6 +283,16 @@ bool Client::isCriticalError(const char *message)
|
||||
}
|
||||
|
||||
|
||||
bool Client::isTLS() const
|
||||
{
|
||||
# ifndef XMRIG_NO_TLS
|
||||
return m_pool.isTLS() && m_tls;
|
||||
# else
|
||||
return false;
|
||||
# endif
|
||||
}
|
||||
|
||||
|
||||
bool Client::parseJob(const rapidjson::Value ¶ms, int *code)
|
||||
{
|
||||
if (!params.IsObject()) {
|
||||
|
||||
Reference in New Issue
Block a user