Fixed build without TLS support.
This commit is contained in:
parent
60f6817d21
commit
83a7a88b11
1 changed files with 2 additions and 0 deletions
|
@ -137,10 +137,12 @@ void xmrig::DaemonClient::onHttpData(const HttpData &data)
|
||||||
|
|
||||||
m_ip = static_cast<const HttpContext &>(data).ip().c_str();
|
m_ip = static_cast<const HttpContext &>(data).ip().c_str();
|
||||||
|
|
||||||
|
# ifdef XMRIG_FEATURE_TLS
|
||||||
if (isTLS()) {
|
if (isTLS()) {
|
||||||
m_tlsVersion = static_cast<const HttpsClient &>(data).version();
|
m_tlsVersion = static_cast<const HttpsClient &>(data).version();
|
||||||
m_tlsFingerprint = static_cast<const HttpsClient &>(data).fingerprint();
|
m_tlsFingerprint = static_cast<const HttpsClient &>(data).fingerprint();
|
||||||
}
|
}
|
||||||
|
# endif
|
||||||
|
|
||||||
rapidjson::Document doc;
|
rapidjson::Document doc;
|
||||||
if (doc.Parse(data.body.c_str()).HasParseError()) {
|
if (doc.Parse(data.body.c_str()).HasParseError()) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue