소스 검색

Merge pull request #57 from kolobus/master

Hash instead of IP in traffic limiter
El RIDO 10 년 전
부모
커밋
deda8e4783
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      lib/trafficlimiter.php

+ 1 - 1
lib/trafficlimiter.php

@@ -79,7 +79,7 @@ class trafficlimiter extends persistence
      */
     public static function getIp()
     {
-        return $_SERVER[self::$_ipKey];
+        return md5($_SERVER[self::$_ipKey]);
     }
 
     /**