IP restriction for inbound sms test 2

This commit is contained in:
venusbb
2017-06-29 10:47:27 +01:00
parent 73e0432a69
commit 16571c5b3c
4 changed files with 16 additions and 9 deletions

View File

@@ -57,11 +57,6 @@ 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'