This is a fork of Zandronum used on servers hosted by The Sentinels Playground (TSPG), Euroboros (EB), and Down Under Doomers (DUD).
Révision | 83b6cd3bc9e67193ef3a1ed25ca178183d2276dd (tree) |
---|---|
l'heure | 2022-10-12 23:52:32 |
Auteur | Adam Kaminski <kaminskiadam9@gmai...> |
Commiter | Adam Kaminski |
Cleaned up minor code duplication.
@@ -1792,7 +1792,7 @@ | ||
1792 | 1792 | |
1793 | 1793 | Printf( "Unknown challenge (%d) from %s. Ignoring IP for 10 seconds.\n", static_cast<int> (lCommand), NETWORK_GetFromAddress().ToString() ); |
1794 | 1794 | // [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( )); | |
1796 | 1796 | |
1797 | 1797 | #ifdef CREATE_PACKET_LOG |
1798 | 1798 | server_LogPacket(pByteStream, NETWORK_GetFromAddress( ), "Unknown connection challenge."); |
@@ -2389,7 +2389,7 @@ | ||
2389 | 2389 | Printf( "%s disconnected. Ignoring IP for 10 seconds.\n", g_aClients[ulClient].Address.ToString() ); |
2390 | 2390 | |
2391 | 2391 | // [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 ); | |
2393 | 2393 | |
2394 | 2394 | // [BB] Be sure to properly disconnect the client. |
2395 | 2395 | SERVER_DisconnectClient( ulClient, false, false ); |