Commit 9ba07985 authored by Alexander Kruppa's avatar Alexander Kruppa

If no whitelist given at all -> alles verboten

parent 53e0b0c3
......@@ -111,10 +111,10 @@ class FixedHTTPServer(http.server.HTTPServer):
def verify_request(self, request, client_address):
""" Tests if the client's IP address is whitelisted
If no whitelist is defined, always accepts.
If no whitelist is defined, always denies.
"""
if self.whitelist is None:
return True
return False
# Use ipmask() to convert dotted string form of address to integer
addr = self.ipmask(client_address[0])[0]
for iprange in self.whitelist:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment