Commit c37e382c authored by Jens Langhammer's avatar Jens Langhammer

root(minor): fix incorrect user IP being shown

parent 784dd0fd
Pipeline #4225 passed with stage
in 8 minutes and 35 seconds
......@@ -45,7 +45,7 @@ class WSGILogger:
runtime = int((time() - start) * 10**6)
content_length = content_lengths[0] if content_lengths else 0
self.log(status_codes[0], environ, content_length,
ip_header=None, runtime=runtime)
ip_header='HTTP_X_FORWARDED_FOR', runtime=runtime)
return retval
def log(self, status_code, environ, content_length, **kwargs):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment