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: