EDDNWSGIHandler: X-Forwarded-For can be a comma-separated list

So, make it easier to pull out the IPs, single or not.
This commit is contained in:
Athanasius 2022-03-12 19:00:07 +00:00
parent c415e7c52a
commit b137d8c234

View File

@ -51,6 +51,6 @@ class EDDNWSGIHandler(gevent.pywsgi.WSGIHandler):
delta = '-'
# This differs from the super-class version in not having a datestamp
return f"{client_address or '-'} - - \"{self.requestline or '-'}\"" \
return f"[{client_address or '-'}] - - \"{self.requestline or '-'}\"" \
f" {(self._orig_status or self.status or '000').split()[0]}" \
f" {length} {delta}"