From 923836952f427b38ac7fcc3848ce30a729fcf18c Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sat, 9 May 2026 16:46:59 +0800 Subject: [PATCH] bugfix --- ahserver/auth_api.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ahserver/auth_api.py b/ahserver/auth_api.py index cf0d737..e016184 100644 --- a/ahserver/auth_api.py +++ b/ahserver/auth_api.py @@ -41,6 +41,9 @@ class CustomTktAuth(auth.SessionTktAuthentication): client_ip=ip, user_data=client_uuid) +def get_client_ip(obj, request): + return request['client_ip'] + async def get_session_userinfo(request): d = await auth.get_auth(request) if d is None: