From c37e382c15c401de4d0defe6e50f406efd162a74 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Mon, 2 Dec 2019 18:05:06 +0100 Subject: [PATCH] root(minor): fix incorrect user IP being shown --- passbook/root/wsgi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/passbook/root/wsgi.py b/passbook/root/wsgi.py index f9ce13c41..a3b171ebc 100644 --- a/passbook/root/wsgi.py +++ b/passbook/root/wsgi.py @@ -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):