From 2ff9204a61580a813a5d0c0ac27d64115b3a6ccb Mon Sep 17 00:00:00 2001 From: venusbb Date: Tue, 4 Jul 2017 16:16:39 +0100 Subject: [PATCH] modified the parsing of return ip address --- app/authentication/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/authentication/auth.py b/app/authentication/auth.py index 7227ead3b..e5c9a399c 100644 --- a/app/authentication/auth.py +++ b/app/authentication/auth.py @@ -48,7 +48,7 @@ def restrict_ip_sms(): ip = '' if request.headers.getlist("X-Forwarded-For"): ip0 = request.headers.getlist("X-Forwarded-For") - ip1 = ip0.split(','); + ip1 = ip0.split(',') ip = ip1[0] if ip in current_app.config.get('ALLOW_IP_INBOUND_SMS'):