delete old variable ip

This commit is contained in:
venusbb
2017-09-15 10:54:25 +01:00
parent 09bc392097
commit db977be8d0

View File

@@ -51,7 +51,6 @@ def restrict_ip_sms():
current_app.logger.info("X-Custom-forwarder {}".format(request.headers.get("X-Custom-forwarder")))
# Check IP of SMS providers
ip = ''
if request.headers.get("X-Forwarded-For"):
# X-Forwarded-For looks like "203.0.113.195, 70.41.3.18, 150.172.238.178"
# Counting backwards and look at the IP at the 3rd last hop - hence, hop(end-3)