Improve server control and logging of the DOS blacklist (#10904)

* Log kicks related to DOS bans

* unBlacklistDos method

Added a method to remove an IP that was blacklisted for being a potential DOS attack.

* Added a command to add/remove/list DOS bans

* Switched from spaces to a tab in the subnet-ban command

Switched from spaces to a tab in the subnet-ban command's listing function. This is better for accessibility and customizability.

* Use info(String, Object...) instead of String.format

* Fixed formatting to fit style guidelines
This commit is contained in:
Lett
2025-06-07 00:13:15 -04:00
committed by GitHub
parent 47c19487fc
commit a18c5d148d
3 changed files with 36 additions and 1 deletions

View File

@@ -91,6 +91,10 @@ public class Administration{
dosBlacklist.add(address);
}
public synchronized void unBlacklistDos(String address){
dosBlacklist.remove(address);
}
public synchronized boolean isDosBlacklisted(String address){
return dosBlacklist.contains(address);
}