root(minor): fix incorrect user IP being shown

This commit is contained in:
Jens Langhammer 2019-12-02 18:05:06 +01:00
parent 784dd0fdd6
commit c37e382c15
1 changed files with 1 additions and 1 deletions

View File

@ -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):