mirror of
https://github.com/EDCD/EDDN.git
synced 2026-10-29 01:16:03 +03:00
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:
1 file changed
+1
-1
@@ -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}"
|
||||
Reference in new issue
Block a user