Skip to content

Commit

Permalink
Update Readme (#116)
Browse files Browse the repository at this point in the history
* Add types for get_client_ip parameters (#110)
  • Loading branch information
un33k authored Apr 11, 2024
1 parent 1a4745b commit a83d2f2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# 6.0.5

Enhance:
- Add `HTTP_CF_CONNECTING_IP` to list of known ip headers (Adam M.)
- Remove `HTTP_VIA` header support (unreliable IP information) (@yourcelf)
- Up-version python-ipware to 2.0.3

# 6.0.4

Enhancement:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ Please use ipware `ONLY` as a complement to your `firewall` security measures!
```python
# The default meta precedence order (update as needed)
IPWARE_META_PRECEDENCE_ORDER = (
"X_FORWARDED_FOR", # AWS ELB (default client is `left-most` [`<client>, <proxy1>, <proxy2>`])
"X_FORWARDED_FOR", # Load balancers or proxies such as AWS ELB (default client is `left-most` [`<client>, <proxy1>, <proxy2>`])
"HTTP_X_FORWARDED_FOR", # Similar to X_FORWARDED_TO
"HTTP_CLIENT_IP", # Standard headers used by providers such as Amazon EC2, Heroku etc.
"HTTP_X_REAL_IP", # Standard headers used by providers such as Amazon EC2, Heroku etc.
"HTTP_X_FORWARDED", # Squid and others
"HTTP_X_CLUSTER_CLIENT_IP", # Rackspace LB and Riverbed Stingray
"HTTP_FORWARDED_FOR", # RFC 7239
"HTTP_FORWARDED", # RFC 7239
"HTTP_VIA", # Squid and others
"HTTP_CF_CONNECTING_IP", # CloudFlare
"X-CLIENT-IP", # Microsoft Azure
"X-REAL-IP", # NGINX
"X-CLUSTER-CLIENT-IP", # Rackspace Cloud Load Balancers
Expand Down
2 changes: 1 addition & 1 deletion ipware/__version__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
__url__ = 'https://github.com/un33k/django-ipware'
__license__ = 'MIT'
__copyright__ = 'Copyright 2023 Val Neekman @ Neekware Inc.'
__version__ = '6.0.4'
__version__ = '6.0.5'
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
python_requires = ">=3.8"
here = os.path.abspath(os.path.dirname(__file__))

requires = ['python-ipware>=2.0.0']
requires = ['python-ipware>=2.0.3']
test_requirements = []

about = {}
Expand Down

0 comments on commit a83d2f2

Please sign in to comment.