mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-10-21 15:57:30 +00:00
refactor dos protection
This commit is contained in:
1 parent
2c05a442ee
commit
93a477e9c3
3 files changed
+15
-75
No files matched your search
@@ -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