chenjunkai 6 年之前
父節點
當前提交
a086790516
共有 1 個文件被更改,包括 1 次插入1 次删除
  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: