Skip to content

Commit

Permalink
Fix getIp()
Browse files Browse the repository at this point in the history
  • Loading branch information
dfridrich committed Mar 31, 2016
1 parent 5122e76 commit 2cc269c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public static function getIp()
if (isset($_SERVER["HTTP_X_FORWARDED_FOR"]) && $_SERVER["HTTP_X_FORWARDED_FOR"] != "") {
return $_SERVER["HTTP_X_FORWARDED_FOR"];
} else {
return $_SERVER["REMOTE_ADDR"];
return @$_SERVER["REMOTE_ADDR"];
}
}

Expand Down

0 comments on commit 2cc269c

Please sign in to comment.