Do not log every single connect in a DDOS

This commit is contained in:
BalaM314 2026-02-08 22:58:35 +05:30 committed by GitHub
parent 88f1e0c4af
commit c95775b1a2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -113,8 +113,6 @@ public class ArcNetProvider implements NetProvider{
//kill connections above the limit to prevent spam
if((playerLimitCache > 0 && server.getConnections().length > playerLimitCache) || netServer.admins.isDosBlacklisted(ip)){
Log.info("Closing connection @ - IP marked as a potential DOS attack.", ip);
connection.close(DcReason.closed);
return;
}