mirror of
https://github.com/Kozea/Radicale.git
synced 2025-09-06 20:10:56 +00:00
Add a config key to ignore reverse DNS (fixes #779)
This commit is contained in:
parent
7bfc17a51d
commit
344f87d8fb
3 changed files with 12 additions and 1 deletions
|
@ -105,6 +105,14 @@ class RequestHandler(wsgiref.simple_server.WSGIRequestHandler):
|
|||
def log_message(self, *args, **kwargs):
|
||||
"""Disable inner logging management."""
|
||||
|
||||
def address_string(self):
|
||||
"""Client address, formatted for logging."""
|
||||
if config.getboolean("server", "dns_lookup"):
|
||||
return \
|
||||
wsgiref.simple_server.WSGIRequestHandler.address_string(self)
|
||||
else:
|
||||
return self.client_address[0]
|
||||
|
||||
|
||||
class Application(object):
|
||||
"""WSGI application managing collections."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue