Merge branch 'simple-dos-protected' of github.com:Igor20264/BeamMP-Server into simple-dos-protected

This commit is contained in:
sla-ppy
2024-06-18 16:49:04 +02:00
2 changed files with 73 additions and 3 deletions

View File

@@ -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;