python-ipware 2.0.0__py3-none-any.whl → 2.0.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- python_ipware/__version__.py +1 -1
- python_ipware/python_ipware.py +1 -2
- {python_ipware-2.0.0.dist-info → python_ipware-2.0.1.dist-info}/METADATA +2 -2
- python_ipware-2.0.1.dist-info/RECORD +9 -0
- {python_ipware-2.0.0.dist-info → python_ipware-2.0.1.dist-info}/WHEEL +1 -1
- python_ipware-2.0.0.dist-info/RECORD +0 -9
- {python_ipware-2.0.0.dist-info → python_ipware-2.0.1.dist-info}/LICENSE +0 -0
- {python_ipware-2.0.0.dist-info → python_ipware-2.0.1.dist-info}/top_level.txt +0 -0
python_ipware/__version__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "2.0.
|
|
1
|
+
__version__ = "2.0.1"
|
python_ipware/python_ipware.py
CHANGED
|
@@ -26,7 +26,6 @@ class IpWareMeta:
|
|
|
26
26
|
"HTTP_X_CLUSTER_CLIENT_IP", # Rackspace LB and Riverbed Stingray
|
|
27
27
|
"HTTP_FORWARDED_FOR", # RFC 7239
|
|
28
28
|
"HTTP_FORWARDED", # RFC 7239
|
|
29
|
-
"HTTP_VIA", # Squid and others
|
|
30
29
|
"X-CLIENT-IP", # Microsoft Azure
|
|
31
30
|
"X-REAL-IP", # NGINX
|
|
32
31
|
"X-CLUSTER-CLIENT-IP", # Rackspace Cloud Load Balancers
|
|
@@ -106,7 +105,7 @@ class IpWareIpAddress:
|
|
|
106
105
|
ip = ipaddress.IPv4Address(ipv4)
|
|
107
106
|
except ipaddress.AddressValueError:
|
|
108
107
|
# not a valid IP address, return None
|
|
109
|
-
logging.
|
|
108
|
+
logging.info("Invalid ip address. {0}".format(ip_str))
|
|
110
109
|
ip = None
|
|
111
110
|
return ip
|
|
112
111
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: python-ipware
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.1
|
|
4
4
|
Summary: A Python package to retrieve user's IP address
|
|
5
5
|
Author-email: Val Neekman <info@neekware.com>
|
|
6
6
|
License: MIT
|
|
@@ -19,6 +19,7 @@ Classifier: Programming Language :: Python :: 3.8
|
|
|
19
19
|
Classifier: Programming Language :: Python :: 3.9
|
|
20
20
|
Classifier: Programming Language :: Python :: 3.10
|
|
21
21
|
Classifier: Programming Language :: Python :: 3.11
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
22
23
|
Requires-Python: >=3.7
|
|
23
24
|
Description-Content-Type: text/markdown
|
|
24
25
|
License-File: LICENSE
|
|
@@ -133,7 +134,6 @@ request_headers_precedence_order = (
|
|
|
133
134
|
"HTTP_X_CLUSTER_CLIENT_IP", # Rackspace LB and Riverbed Stingray
|
|
134
135
|
"HTTP_FORWARDED_FOR", # RFC 7239
|
|
135
136
|
"HTTP_FORWARDED", # RFC 7239
|
|
136
|
-
"HTTP_VIA", # Squid and others
|
|
137
137
|
"X-CLIENT-IP", # Microsoft Azure
|
|
138
138
|
"X-REAL-IP", # NGINX
|
|
139
139
|
"X-CLUSTER-CLIENT-IP", # Rackspace Cloud Load Balancers
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
python_ipware/__init__.py,sha256=TCZx4mt5Gxr2D_zNU6j0ynopdsAN_v4xeiTWz1OXSpY,87
|
|
2
|
+
python_ipware/__version__.py,sha256=wAxkK8w13vqoF47A8iqWdSlIgRRXmZiQ0R4wePZfzhs,22
|
|
3
|
+
python_ipware/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
+
python_ipware/python_ipware.py,sha256=PacCjg03wsKID34e7FMO5dJnaus2GUvV20_eVew3SzY,12032
|
|
5
|
+
python_ipware-2.0.1.dist-info/LICENSE,sha256=MLpNxpqfTc4TLdcDk3x6k7Vz4lJGBNLV-SxQZlFMDU8,1103
|
|
6
|
+
python_ipware-2.0.1.dist-info/METADATA,sha256=ccujv0l5NTyvrVRtlhKcFmsrjIZsMOsE5n20bcaUILw,14814
|
|
7
|
+
python_ipware-2.0.1.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
|
8
|
+
python_ipware-2.0.1.dist-info/top_level.txt,sha256=URE4dvjpReJtRHyQpJqoBow5EWt_RqVXFn85B9Tq5Xw,14
|
|
9
|
+
python_ipware-2.0.1.dist-info/RECORD,,
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
python_ipware/__init__.py,sha256=TCZx4mt5Gxr2D_zNU6j0ynopdsAN_v4xeiTWz1OXSpY,87
|
|
2
|
-
python_ipware/__version__.py,sha256=_7OlQdbVkK4jad0CLdpI0grT-zEAb-qgFmH5mFzDXiA,22
|
|
3
|
-
python_ipware/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
python_ipware/python_ipware.py,sha256=7q9-vBHx2l9SGBCxrFTx8HbtBuzr4rDg3BjFFkXq6k8,12081
|
|
5
|
-
python_ipware-2.0.0.dist-info/LICENSE,sha256=MLpNxpqfTc4TLdcDk3x6k7Vz4lJGBNLV-SxQZlFMDU8,1103
|
|
6
|
-
python_ipware-2.0.0.dist-info/METADATA,sha256=eGFsduXlQiyKYBq87Q47U6YgzRjwEceO9Mj7S6ZDuqQ,14799
|
|
7
|
-
python_ipware-2.0.0.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
|
|
8
|
-
python_ipware-2.0.0.dist-info/top_level.txt,sha256=URE4dvjpReJtRHyQpJqoBow5EWt_RqVXFn85B9Tq5Xw,14
|
|
9
|
-
python_ipware-2.0.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|