chenjunkai 6 năm trước cách đây
mục cha
commit
a086790516
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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: