You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "/app/.heroku/python/lib/python2.7/site-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/app/.heroku/python/lib/python2.7/site-packages/django/core/handlers/base.py", line 244, in _legacy_get_response
response = middleware_method(request)
File "/app/.heroku/python/lib/python2.7/site-packages/newrelic/hooks/framework_django.py", line 220, in wrapper
return wrapped(*args, **kwargs)
File "/app/.heroku/python/lib/python2.7/site-packages/iprestrict/middleware.py", line 42, in process_request
if self.restrictor.is_restricted(url, client_ip):
File "/app/.heroku/python/lib/python2.7/site-packages/iprestrict/restrictor.py", line 16, in is_restricted
if rule.matches_url(url) and rule.matches_ip(ip):
File "/app/.heroku/python/lib/python2.7/site-packages/iprestrict/models.py", line 229, in matches_ip
match = typed_ip_group(self.ip_group).matches(ip)
File "/app/.heroku/python/lib/python2.7/site-packages/iprestrict/models.py", line 101, in matches
if ip in r:
File "/app/.heroku/python/lib/python2.7/site-packages/iprestrict/models.py", line 167, in __contains__
ip_nr = ipu.to_number(ip)
File "/app/.heroku/python/lib/python2.7/site-packages/iprestrict/ip_utils.py", line 22, in to_number
return ipv6_to_number(ip) if is_ipv6(ip) else ipv4_to_number(ip)
File "/app/.heroku/python/lib/python2.7/site-packages/iprestrict/ip_utils.py", line 26, in ipv4_to_number
return _ip_to_number(ip)
File "/app/.heroku/python/lib/python2.7/site-packages/iprestrict/ip_utils.py", line 88, in _ip_to_number
parts = [int(p, base) for p in reversed(parts)]
ValueError: invalid literal for int() with base 10: 'unknown'
The text was updated successfully, but these errors were encountered:
Using Django 1.11 and
django-iprestrict==1.7.0
:The text was updated successfully, but these errors were encountered: