mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-02-16 10:41:01 +00:00
Merge branch 'simple-dos-protected' of github.com:Igor20264/BeamMP-Server into simple-dos-protected
This commit is contained in:
@@ -27,6 +27,14 @@
|
||||
|
||||
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);
|
||||
@@ -48,7 +56,6 @@ public:
|
||||
private:
|
||||
void UDPServerMain();
|
||||
void TCPServerMain();
|
||||
|
||||
TServer& mServer;
|
||||
TPPSMonitor& mPPSMonitor;
|
||||
ip::udp::socket mUDPSock;
|
||||
|
||||
Reference in New Issue
Block a user