Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

tweak

  • Loading branch information...
commit db00775b7eb284b4c37c54b786407f553274f24a 1 parent 207e918
Michael Ricordeau tamiel authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/plivo/rest/freeswitch/rest_api.py
4 src/plivo/rest/freeswitch/rest_api.py
View
@@ -33,8 +33,8 @@ def _validate_ip_auth(self):
if not allowed_ips:
return True
ip_list = allowed_ips.split(',')
- for ip in ip_list:
- if str(ip) == str(request.remote_addr):
+ for ip in allowed_ips.split(','):
+ if ip.strip() == request.remote_addr.strip():
return True
raise Unauthorized("IP Auth Failed")
Please sign in to comment.
Something went wrong with that request. Please try again.