Reduced memory consumption on network level.

This commit is contained in:
XMRig
2020-03-20 20:53:27 +07:00
parent 2acd2e535f
commit 77ca9aecde
17 changed files with 462 additions and 205 deletions

View File

@@ -78,7 +78,7 @@ void xmrig::Client::Socks5::connect()
const auto &host = m_client->pool().host();
std::vector<uint8_t> buf;
sockaddr_storage addr;
sockaddr_storage addr{};
if (isIPv4(host, &addr)) {
buf.resize(10);