mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-06-12 13:53:54 +00:00
permission system
This commit is contained in:
@ -20,15 +20,12 @@ public class Module_permbans extends HTTPDModule
|
||||
{
|
||||
File permbanFile = new File(plugin.getDataFolder(), PermbanList.CONFIG_FILENAME);
|
||||
|
||||
// if people get mad that opening the permban list to the public causes a mass DDoS attack on the server due to ip
|
||||
// leaks, it wasnt my idea
|
||||
|
||||
/*final String remoteAddress = socket.getInetAddress().getHostAddress();
|
||||
final String remoteAddress = socket.getInetAddress().getHostAddress();
|
||||
if (!isAuthorized(remoteAddress))
|
||||
{
|
||||
return new NanoHTTPD.Response(NanoHTTPD.Response.Status.NOT_FOUND, NanoHTTPD.MIME_PLAINTEXT,
|
||||
"You may not view the permban list. Your IP, " + remoteAddress + ", is not registered to an admin on the server.");
|
||||
}*/
|
||||
}
|
||||
if (permbanFile.exists())
|
||||
{
|
||||
return HTTPDaemon.serveFileBasic(new File(plugin.getDataFolder(), PermbanList.CONFIG_FILENAME));
|
||||
|
Reference in New Issue
Block a user