mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-07-12 17:54:04 +00:00
make connection reject msg a debug message, avoiding spam on ddos
This commit is contained in:
+1
-1
@@ -292,7 +292,7 @@ void TNetwork::TCPServerMain() {
|
||||
std::string ClientIP = ClientEp.address().to_string();
|
||||
auto MaybeGuard = mConnectionLimiter.TryAcquire(ClientIP);
|
||||
if (!MaybeGuard.has_value()) {
|
||||
beammp_errorf("Connection rejected for {} due to the global or concurrent connection limit", ClientIP);
|
||||
beammp_debugf("Connection rejected for {} due to the global or concurrent connection limit", ClientIP);
|
||||
continue;
|
||||
}
|
||||
// move-swap to avoid copy ctor (deleted)
|
||||
|
||||
Reference in New Issue
Block a user