chenjunkai %!s(int64=6) %!d(string=hai) anos
pai
achega
f1a9bd57e2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Service/CommonService.py

+ 1 - 1
Service/CommonService.py

@@ -65,7 +65,7 @@ class CommonService:
         :param request:
         :return:
         """
-        ip = request.META.get("X-Forwarded-For","")
+        ip = request.META.get("X_FORWARDED_FOR","")
         if ip:
             client_ip = ip.split(",")[0].strip() if ip else ""
             if client_ip: