mirror of
https://github.com/EDCD/EDDN.git
synced 2025-04-25 04:40:53 +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:
parent
c415e7c52a
commit
b137d8c234
@ -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}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user