From cb066261f5fbabc0e5f2e34fe953920eae6c3b74 Mon Sep 17 00:00:00 2001 From: Dan Date: Sat, 22 Aug 2020 08:47:20 +0200 Subject: [PATCH] Use ipware.ip.get_client_ip instead of get_real_ip https://github.com/un33k/django-ipware/issues/45#issuecomment-421572304 --- tapiriik/auth/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tapiriik/auth/__init__.py b/tapiriik/auth/__init__.py index 95e7637aa..c5edc6fd1 100644 --- a/tapiriik/auth/__init__.py +++ b/tapiriik/auth/__init__.py @@ -23,9 +23,9 @@ def GetByConnection(svcRec): return db.users.find_one({"ConnectedServices.ID": svcRec._id}) def Ensure(req): - from ipware.ip import get_real_ip + from ipware.ip import get_client_ip if req.user == None: - req.user = User.Create(creationIP=get_real_ip(req)) + req.user = User.Create(creationIP=get_client_ip(req)) User.Login(req.user, req) return req.user