mirror of
https://github.com/EDCD/EDDN.git
synced 2025-04-29 22:51:39 +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
8cf0d12d97
commit
9bf24f9a05
@ -51,6 +51,6 @@ class EDDNWSGIHandler(gevent.pywsgi.WSGIHandler):
|
|||||||
delta = '-'
|
delta = '-'
|
||||||
|
|
||||||
# This differs from the super-class version in not having a datestamp
|
# 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" {(self._orig_status or self.status or '000').split()[0]}" \
|
||||||
f" {length} {delta}"
|
f" {length} {delta}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user