• R/O
  • SSH

zandronum-sandbox-stable: Commit


Commit MetaInfo

Revisión83b6cd3bc9e67193ef3a1ed25ca178183d2276dd (tree)
Tiempo2022-10-12 23:52:32
AutorAdam Kaminski <kaminskiadam9@gmai...>
CommiterAdam Kaminski

Log Message

Cleaned up minor code duplication.

Cambiar Resumen

Diferencia incremental

diff -r 54a0756c4292 -r 83b6cd3bc9e6 src/sv_main.cpp
--- a/src/sv_main.cpp Tue Oct 11 09:38:03 2022 -0400
+++ b/src/sv_main.cpp Wed Oct 12 10:52:32 2022 -0400
@@ -1792,7 +1792,7 @@
17921792
17931793 Printf( "Unknown challenge (%d) from %s. Ignoring IP for 10 seconds.\n", static_cast<int> (lCommand), NETWORK_GetFromAddress().ToString() );
17941794 // [BB] Block all further challenges of this IP for ten seconds to prevent log flooding.
1795- g_floodProtectionIPQueue.addAddress ( NETWORK_GetFromAddress( ), g_lGameTime / 1000 );
1795+ SERVER_IgnoreIP( NETWORK_GetFromAddress( ));
17961796
17971797 #ifdef CREATE_PACKET_LOG
17981798 server_LogPacket(pByteStream, NETWORK_GetFromAddress( ), "Unknown connection challenge.");
@@ -2389,7 +2389,7 @@
23892389 Printf( "%s disconnected. Ignoring IP for 10 seconds.\n", g_aClients[ulClient].Address.ToString() );
23902390
23912391 // [BB] Block this IP for ten seconds to prevent log flooding.
2392- g_floodProtectionIPQueue.addAddress ( g_aClients[ulClient].Address, g_lGameTime / 1000 );
2392+ SERVER_IgnoreIP( g_aClients[ulClient].Address );
23932393
23942394 // [BB] Be sure to properly disconnect the client.
23952395 SERVER_DisconnectClient( ulClient, false, false );
Show on old repository browser