refactor dos protection

This commit is contained in:
sla-ppy
2024-06-20 07:28:55 +02:00
committed by Lion Kortlepel
parent 2c05a442ee
commit 93a477e9c3
3 changed files with 15 additions and 75 deletions

View File

@@ -27,14 +27,6 @@
struct TConnection;
class WatchingConnecting{
public:
bool IsConnectionAllowed(const std::string& clientAddress);
private:
void BlockIP(const std::string& clientAddress);
bool IsIPBlocked(const std::string& clientAddress);
};
class TNetwork {
public:
TNetwork(TServer& Server, TPPSMonitor& PPSMonitor, TResourceManager& ResourceManager);