P2PServer: truncate too long peers list in api

pull/253/head
SChernykh 1 year ago
parent 3697c079fa
commit 5c67f0df20

@ -1260,6 +1260,11 @@ void P2PServer::api_update_local_stats()
<< client->m_broadcastMaxHeight << ','
<< static_cast<char*>(client->m_addrString)
<< '"';
if (s.m_pos + 128 >= s.m_bufSize) {
break;
}
first = false;
}
}

Loading…
Cancel
Save