Added SNI option for TLS connections

Disabled by default, add `"sni": true,` to pool config to enable it.
This commit is contained in:
SChernykh
2023-09-29 08:33:01 +02:00
parent b12f14d213
commit 0a29198869
5 changed files with 13 additions and 3 deletions

View File

@@ -589,7 +589,7 @@ void xmrig::Client::handshake()
if (isTLS()) {
m_expire = Chrono::steadyMSecs() + kResponseTimeout;
m_tls->handshake();
m_tls->handshake(m_pool.isSNI() ? m_pool.host().data() : nullptr);
}
else
# endif