mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
More reasonable netfiltering hopefully
This commit is contained in:
parent
c259c2752c
commit
4f79d90212
|
@ -223,7 +223,7 @@ MACRO_CONFIG_INT(SvGlobalBantime, sv_global_ban_time, 60, 0, 1440, CFGFLAG_SERVE
|
|||
MACRO_CONFIG_INT(SvEvents, sv_events, 1, 0, 1, CFGFLAG_SERVER, "Enable triggering of server events, like the happy eyeemotes on some holidays.")
|
||||
|
||||
// netlimit
|
||||
MACRO_CONFIG_INT(SvNetlimit, sv_netlimit, 100, 0, 10000, CFGFLAG_SERVER, "Netlimit: Maximum amount of traffic a client is allowed to use (in kb/s)")
|
||||
MACRO_CONFIG_INT(SvNetlimit, sv_netlimit, 200, 0, 10000, CFGFLAG_SERVER, "Netlimit: Maximum amount of traffic a client is allowed to use (in kb/s)")
|
||||
MACRO_CONFIG_INT(SvNetlimitAlpha, sv_netlimit_alpha, 50, 1, 100, CFGFLAG_SERVER, "Netlimit: Alpha of Exponention moving average")
|
||||
|
||||
#endif
|
||||
|
|
|
@ -240,8 +240,7 @@ int CNetServer::Send(CNetChunk *pChunk)
|
|||
}
|
||||
else
|
||||
{
|
||||
// Don't drop clients.
|
||||
//Drop(pChunk->m_ClientID, "Error sending data");
|
||||
Drop(pChunk->m_ClientID, "Error sending data");
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue