Skip to content

Commit b366290

Browse files
committedJan 24, 2016
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.
1 parent a431911 commit b366290

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed
 

‎config-example.py

-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616
# only announce once every 5 minutes, so this should be more than 300.
1717
PURGE_TIME = 350
1818

19-
# List of banned IP addresses
20-
BANLIST = []
21-
2219
# Creates server entries if a server sends an 'update' and there is no entry yet.
2320
# This should only be used to populate the server list after list.json was deleted.
2421
# This WILL cause problems such as mapgen, mods and privilege information missing from the list

‎server.py

-3
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@ def announce():
3636
if ip.startswith("::ffff:"):
3737
ip = ip[7:]
3838

39-
if ip in app.config["BANLIST"]:
40-
return "Banned.", 403
41-
4239
data = request.form["json"] if request.method == "POST" else request.args["json"]
4340

4441
if len(data) > 5000:

0 commit comments

Comments
 (0)
Please sign in to comment.