P2PServer: don't add banned peers back to the peer list

This commit is contained in:
SChernykh
2021-08-27 16:36:06 +02:00
parent 3804bfb0ba
commit 81a12158fc
3 changed files with 28 additions and 21 deletions

View File

@@ -193,6 +193,8 @@ protected:
uv_mutex_t m_bansLock;
std::map<raw_ip, time_t> m_bans;
bool is_banned(const raw_ip& ip);
uv_mutex_t m_pendingConnectionsLock;
std::set<raw_ip> m_pendingConnections;