From aab321baf9958ae128460c2279364926f6612dca Mon Sep 17 00:00:00 2001 From: Val N Date: Thu, 11 Apr 2024 18:59:22 -0400 Subject: [PATCH] Add HTTP_CF_CONNECTING_IP to ip Header list (#16) add HTTP_CF_CONNECTING_IP to ip header list --- CHANGELOG.md | 5 +++++ python_ipware/__version__.py | 2 +- python_ipware/python_ipware.py | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0f0c124..b56f3f8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## 2.0.3 + +Enhance: +- Added `HTTP_CF_CONNECTING_IP` to list of known ip headers (Adam M.) + ## 2.0.2 Enhance: diff --git a/python_ipware/__version__.py b/python_ipware/__version__.py index 0309ae2..5fa9130 100644 --- a/python_ipware/__version__.py +++ b/python_ipware/__version__.py @@ -1 +1 @@ -__version__ = "2.0.2" +__version__ = "2.0.3" diff --git a/python_ipware/python_ipware.py b/python_ipware/python_ipware.py index f897a56..8b6d177 100644 --- a/python_ipware/python_ipware.py +++ b/python_ipware/python_ipware.py @@ -28,6 +28,7 @@ def __init__( "HTTP_X_CLUSTER_CLIENT_IP", # Rackspace LB and Riverbed Stingray "HTTP_FORWARDED_FOR", # RFC 7239 "HTTP_FORWARDED", # RFC 7239 + "HTTP_CF_CONNECTING_IP", # CloudFlare "X-CLIENT-IP", # Microsoft Azure "X-REAL-IP", # NGINX "X-CLUSTER-CLIENT-IP", # Rackspace Cloud Load Balancers