From 25318f14772017d784d839995d7b738dc52455fd Mon Sep 17 00:00:00 2001 From: RogerWork Date: Wed, 20 Mar 2024 16:39:12 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=AF=95=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dingxin_toolbox_drf/http.py | 1 + 1 file changed, 1 insertion(+) diff --git a/dingxin_toolbox_drf/http.py b/dingxin_toolbox_drf/http.py index ce1fae2..74fcd7a 100644 --- a/dingxin_toolbox_drf/http.py +++ b/dingxin_toolbox_drf/http.py @@ -12,6 +12,7 @@ class SetRemoteAddrFromForwardedFor(MiddlewareMixin): real_ip = request.META['HTTP_X_FORWARDED_FOR'] print("request.META") print(request.META) + print('real_ip', real_ip) except KeyError as err: print(err) else: