mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-04-07 00:06:22 +00:00
refactor dos protection
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user