Remove ban list

This should be handled at a higher level, such as in NetFilter or the proxy server.
I only added this feature because the old server list had it.
This commit is contained in:
ShadowNinja
2016-01-23 23:53:01 -05:00
parent a431911b9d
commit b366290118
2 changed files with 0 additions and 6 deletions

View File

@@ -16,9 +16,6 @@ FILENAME = "list.json"
# only announce once every 5 minutes, so this should be more than 300.
PURGE_TIME = 350
# List of banned IP addresses
BANLIST = []
# Creates server entries if a server sends an 'update' and there is no entry yet.
# This should only be used to populate the server list after list.json was deleted.
# This WILL cause problems such as mapgen, mods and privilege information missing from the list

View File

@@ -36,9 +36,6 @@ def announce():
if ip.startswith("::ffff:"):
ip = ip[7:]
if ip in app.config["BANLIST"]:
return "Banned.", 403
data = request.form["json"] if request.method == "POST" else request.args["json"]
if len(data) > 5000: