diff options
Diffstat (limited to 'cgi/framework.py')
-rw-r--r-- | cgi/framework.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/cgi/framework.py b/cgi/framework.py index 9899c16..5f95303 100644 --- a/cgi/framework.py +++ b/cgi/framework.py @@ -50,9 +50,7 @@ def cleanDir(path, ext=None): def addressIsBanned(ip, board): - # TODO ipv6 - - bans = FetchAll("SELECT * FROM `bans` WHERE `ip` = INET6_ATON('"+str(ip)+"')") + bans = FetchAll("SELECT * FROM `bans` WHERE INET6_ATON('"+str(ip)+"') BETWEEN `ipstart` AND `ipend`") for ban in bans: if ban["boards"] != "": boards = pickle.loads(ban["boards"]) |