Skip to content

Commit

Permalink
remove redundant line
Browse files Browse the repository at this point in the history
  • Loading branch information
un33k committed Apr 19, 2024
1 parent c262ace commit aad4243
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ipware/ip.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,13 @@ def get_client_ip(
) -> Tuple[str, bool]:
leftmost = proxy_order == 'left-most'
proxy_count = proxy_count
proxy_list = proxy_trusted_ips
request_header_order = getattr(settings, 'IPWARE_META_PRECEDENCE_ORDER', request_header_order)

# Instantiate IpWare with values from the function arguments
ipw = IpWare(precedence=request_header_order,
leftmost=leftmost,
proxy_count=proxy_count,
proxy_list=proxy_list)
proxy_list=proxy_trusted_ips)

ip, _ = ipw.get_client_ip(request.META, True)

Expand Down

0 comments on commit aad4243

Please sign in to comment.