调试代码

main
RogerWork 8 months ago
parent d42861ce07
commit 25318f1477
  1. 1
      dingxin_toolbox_drf/http.py

@ -12,6 +12,7 @@ class SetRemoteAddrFromForwardedFor(MiddlewareMixin):
real_ip = request.META['HTTP_X_FORWARDED_FOR'] real_ip = request.META['HTTP_X_FORWARDED_FOR']
print("request.META") print("request.META")
print(request.META) print(request.META)
print('real_ip', real_ip)
except KeyError as err: except KeyError as err:
print(err) print(err)
else: else:

Loading…
Cancel
Save