increased minimum required connect time for clients to 1 second. #1070

This commit is contained in:
oy 2013-03-20 22:47:48 +01:00
parent 40cdbf6c6a
commit 08d0af36c2

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() && NetBan())
NetBan()->BanAddr(ClientAddr(i), 60, "Stressing network");
else
Drop(i, m_aSlots[i].m_Connection.ErrorString());