mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-10-25 13:30:43 +00:00
make connection reject msg a debug message, avoiding spam on ddos
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -292,7 +292,7 @@ void TNetwork::TCPServerMain() {
|
|||||||
std::string ClientIP = ClientEp.address().to_string();
|
std::string ClientIP = ClientEp.address().to_string();
|
||||||
auto MaybeGuard = mConnectionLimiter.TryAcquire(ClientIP);
|
auto MaybeGuard = mConnectionLimiter.TryAcquire(ClientIP);
|
||||||
if (!MaybeGuard.has_value()) {
|
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;
|
continue;
|
||||||
}
|
}
|
||||||
// move-swap to avoid copy ctor (deleted)
|
// move-swap to avoid copy ctor (deleted)
|
||||||
|
|||||||
Reference in new issue
Block a user