mirror of
https://github.com/SChernykh/p2pool.git
synced 2024-12-22 19:39:22 +00:00
P2PServer: truncate too long peers list in api
This commit is contained in:
parent
3697c079fa
commit
5c67f0df20
1 changed files with 5 additions and 0 deletions
|
@ -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…
Reference in a new issue