mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 22:48:18 +00:00
increased minimum required connect time for clients to 1 second. #1070
This commit is contained in:
parent
40cdbf6c6a
commit
08d0af36c2
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue