Skip to content

Commit

Permalink
Remove ban list
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ShadowNinja committed Jan 24, 2016
1 parent a431911 commit b366290
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions config-example.py
Expand Up @@ -16,9 +16,6 @@
# 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
Expand Down
3 changes: 0 additions & 3 deletions server.py
Expand Up @@ -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:
Expand Down

0 comments on commit b366290

Please sign in to comment.