From b3662901188fe1139603d5cf0874dcd4674a454f Mon Sep 17 00:00:00 2001 From: ShadowNinja Date: Sat, 23 Jan 2016 23:53:01 -0500 Subject: [PATCH] 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. --- config-example.py | 3 --- server.py | 3 --- 2 files changed, 6 deletions(-) diff --git a/config-example.py b/config-example.py index bf87b70..51f3b9f 100644 --- a/config-example.py +++ b/config-example.py @@ -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 diff --git a/server.py b/server.py index 9775275..d51385f 100755 --- a/server.py +++ b/server.py @@ -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: