mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-22 02:21:50 -05:00
Merge pull request #1042 from alphagov/iprestrict_inboundsms
Iprestrict inboundsms
This commit is contained in:
@@ -57,6 +57,11 @@ def show_delivery_status():
|
||||
db_version=get_db_version()), 200
|
||||
|
||||
|
||||
@status.route('/_check_IP_source')
|
||||
def show_check_IP_source():
|
||||
return jsonify({'ip': request.headers.getlist("X-Forwarded-For")}), 200
|
||||
|
||||
|
||||
def get_db_version():
|
||||
try:
|
||||
query = 'SELECT version_num FROM alembic_version'
|
||||
|
||||
Reference in New Issue
Block a user