mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-20 23:41:17 -05:00
Merge pull request #1047 from alphagov/inboundsms_checkip
add logs to see the IP address of the inbound sms
This commit is contained in:
@@ -28,6 +28,7 @@ def receive_mmg_sms():
|
|||||||
'DateRecieved': '2017-05-21+11%3A56%3A11'
|
'DateRecieved': '2017-05-21+11%3A56%3A11'
|
||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
|
current_app.logger.info("Inbound sms sender IP information {}".format(request.headers.getlist("X-Forwarded-For")))
|
||||||
post_data = request.get_json()
|
post_data = request.get_json()
|
||||||
|
|
||||||
inbound_number = strip_leading_forty_four(post_data['Number'])
|
inbound_number = strip_leading_forty_four(post_data['Number'])
|
||||||
|
|||||||
Reference in New Issue
Block a user