mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-03 18:01:08 -05:00
Merge pull request #1056 from alphagov/inboundsms_checkip
Inboundsms checkip
This commit is contained in:
@@ -45,11 +45,14 @@ def requires_no_auth():
|
|||||||
|
|
||||||
|
|
||||||
def restrict_ip_sms():
|
def restrict_ip_sms():
|
||||||
|
'''
|
||||||
ip_addr = jsonify({'remote_addr': request.remote_addr,
|
ip_addr = jsonify({'remote_addr': request.remote_addr,
|
||||||
'X-Forwarded_FOR': request.headers.getlist('X-Forwarded-For'),
|
'X-Forwarded_FOR': request.headers.getlist('X-Forwarded-For'),
|
||||||
'X_Real-Ip': request.headers.getlist('X-Real-Ip')})
|
'X_Real-Ip': request.headers.getlist('X-Real-Ip')})
|
||||||
|
'''
|
||||||
current_app.logger.info("Inbound sms ip addresses = {}".format(ip_addr))
|
current_app.logger.info("Inbound sms ip addresses remote_addr = {}, "
|
||||||
|
"X-Forwarded_FOR = {}".format(request.remote_addr,
|
||||||
|
request.headers.getlist('X-Forwarded-For')))
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user