Permalink
Browse files

AuthService: Avoid notice while getting REMOTE_ADDR

  • Loading branch information...
1 parent 6d0b791 commit 6e2e40be0a481cb217ddde1750efcaa0f772af86 @cdujeu cdujeu committed Jun 2, 2016
Showing with 3 additions and 1 deletion.
  1. +3 −1 core/src/core/src/pydio/Core/Services/AuthService.php
@@ -164,8 +164,10 @@ public static function checkBruteForceLogin(&$loginArray)
{
if (isSet($_SERVER['REMOTE_ADDR'])) {
$serverAddress = $_SERVER['REMOTE_ADDR'];
- } else {
+ } else if(isSet($_SERVER['SERVER_ADDR'])) {
$serverAddress = $_SERVER['SERVER_ADDR'];
+ } else {
+ return TRUE;
}
$login = null;
if (isSet($loginArray[$serverAddress])) {

0 comments on commit 6e2e40b

Please sign in to comment.