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 committed 2022-08-18 15:19:58 +01:00
1 parent 8cf0d12d97
commit 9bf24f9a05
1 file changed
+1 -1
+1 -1
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}"