mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Less strict connection limit
This commit is contained in:
parent
185f132a24
commit
43c963ad2f
|
@ -75,7 +75,7 @@ int CNetServer::Update()
|
|||
m_aSlots[i].m_Connection.Update();
|
||||
if(m_aSlots[i].m_Connection.State() == NET_CONNSTATE_ERROR)
|
||||
{
|
||||
if (Now - m_aSlots[i].m_Connection.ConnectTime() < time_freq() / 2 && NetBan())
|
||||
if (Now - m_aSlots[i].m_Connection.ConnectTime() < time_freq() / 5 && NetBan())
|
||||
NetBan()->BanAddr(ClientAddr(i), 60, "Too many connections");
|
||||
else
|
||||
Drop(i, m_aSlots[i].m_Connection.ErrorString());
|
||||
|
|
Loading…
Reference in a new issue