Less strict connection limit

This commit is contained in:
def 2013-09-03 22:07:15 +02:00
parent 185f132a24
commit 43c963ad2f

View file

@ -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());