]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Chore: upgrade python-ipware dependency (#4446)
authorshamoon <4887959+shamoon@users.noreply.github.com>
Mon, 30 Oct 2023 17:16:49 +0000 (10:16 -0700)
committerGitHub <noreply@github.com>
Mon, 30 Oct 2023 17:16:49 +0000 (10:16 -0700)
Pipfile.lock
src/paperless/signals.py

index 17f35b94b1cef239ebbf42dd499e39b6309bd310..920c3b0f0656f8ff4f53c0372af5691c655e5fc7 100644 (file)
         },
         "python-ipware": {
             "hashes": [
-                "sha256:01b9fa589521c29d7573f69fc4855c6b95687f0029601b78fffef1eb17f1de27",
-                "sha256:ee84cd16c2cf862faae197ad5f8fae6c75e4b1f40bb13357944a5d63ddc2a373"
+                "sha256:802858aa13308d572876d1883edae0eae380fe70a51fdefcb46c8a2099240862",
+                "sha256:a52757123c718342f74b16ab2d9d4a531888d69d10b8197c073164635df0a13b"
             ],
             "index": "pypi",
-            "markers": "python_version >= '3.7'",
-            "version": "==0.9.0"
+            "version": "==2.0.0"
         },
         "python-magic": {
             "hashes": [
index c3e69584d17272126a29698eb64de764e0f69e41..fa0298685d65764a6269113ed66b459db2226d04 100644 (file)
@@ -1,14 +1,14 @@
 import logging
 
 from django.conf import settings
-from ipware import IpWare
+from python_ipware import IpWare
 
 logger = logging.getLogger("paperless.auth")
 
 
 # https://docs.djangoproject.com/en/4.1/ref/contrib/auth/#django.contrib.auth.signals.user_login_failed
 def handle_failed_login(sender, credentials, request, **kwargs):
-    ipware = IpWare(proxy_trusted_list=settings.TRUSTED_PROXIES)
+    ipware = IpWare(proxy_list=settings.TRUSTED_PROXIES)
     client_ip, _ = ipware.get_client_ip(
         meta=request.META,
     )