make connection reject msg a debug message, avoiding spam on ddos

This commit is contained in:
Lion Kortlepel
2026-04-09 18:00:15 +02:00
parent 1f55c35f2b
commit be0d8d5334
+1 -1
View File
@@ -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)