Fixed build without TLS support.

This commit is contained in:
XMRig 2019-04-12 19:25:03 +07:00
parent 60f6817d21
commit 83a7a88b11

View file

@ -137,10 +137,12 @@ void xmrig::DaemonClient::onHttpData(const HttpData &data)
m_ip = static_cast<const HttpContext &>(data).ip().c_str();
# ifdef XMRIG_FEATURE_TLS
if (isTLS()) {
m_tlsVersion = static_cast<const HttpsClient &>(data).version();
m_tlsFingerprint = static_cast<const HttpsClient &>(data).fingerprint();
}
# endif
rapidjson::Document doc;
if (doc.Parse(data.body.c_str()).HasParseError()) {