root(minor): fix incorrect user IP being shown
This commit is contained in:
parent
784dd0fdd6
commit
c37e382c15
|
@ -45,7 +45,7 @@ class WSGILogger:
|
||||||
runtime = int((time() - start) * 10**6)
|
runtime = int((time() - start) * 10**6)
|
||||||
content_length = content_lengths[0] if content_lengths else 0
|
content_length = content_lengths[0] if content_lengths else 0
|
||||||
self.log(status_codes[0], environ, content_length,
|
self.log(status_codes[0], environ, content_length,
|
||||||
ip_header=None, runtime=runtime)
|
ip_header='HTTP_X_FORWARDED_FOR', runtime=runtime)
|
||||||
return retval
|
return retval
|
||||||
|
|
||||||
def log(self, status_code, environ, content_length, **kwargs):
|
def log(self, status_code, environ, content_length, **kwargs):
|
||||||
|
|
Reference in New Issue