get_trusted_ip fails with right_most_proxy
felixxm opened this issue · 0 comments
felixxm commented
get_trusted_ip
fails with right_most_proxy=True
, for example:
get_trusted_ip(request, right_most_proxy=True, trusted_proxies=['177.139.233.139'])
Traceback (most recent call last):
File "django-ipware/ipware/ip.py", line 57, in get_trusted_ip
if proxy in ips[-1]:
TypeError: 'list_reverseiterator' object is not subscriptable