modified the parsing of return ip address

This commit is contained in:
venusbb
2017-07-06 12:30:08 +01:00
parent 0c8e5394a1
commit 2ff9204a61
+1 -1
View File
@@ -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'):