Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
un33k committed Nov 22, 2023
1 parent 8d2b3e6 commit 549363d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ipware/ip.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def get_client_ip(
leftmost = proxy_order == 'left-most'
proxy_count = proxy_count if proxy_count is not None else 0
proxy_list = proxy_trusted_ips if proxy_trusted_ips is not None else []
request_header_order = request_header_order if request_header_order is not None else getattr(settings, 'IPWARE_META_PRECEDENCE_ORDER', None)
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,
Expand Down

0 comments on commit 549363d

Please sign in to comment.