We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2719095 + f9336c3 commit d22fa1bCopy full SHA for d22fa1b
app/event_handlers.py
@@ -53,6 +53,8 @@ class Events(metaclass=EventsMeta):
53
54
# This might not be totally correct depending on proxy setup
55
def _get_remote_addr():
56
+ # If other headers are required (or this one no is longer needed) update the docs:
57
+ # https://github.com/alphagov/notifications-manuals/wiki/Request-headers-used
58
if request.headers.getlist("X-Forwarded-For"):
59
return request.headers.getlist("X-Forwarded-For")[0]
60
return request.remote_addr
0 commit comments