diff --git a/src/Csrf.php b/src/Csrf.php index 188ae22..c59839c 100644 --- a/src/Csrf.php +++ b/src/Csrf.php @@ -258,7 +258,7 @@ public static function getTokens() // the cookies "stick" $secret = static::getSecret(); if (!$hasCookies && $secret) { - $ip = ';ip:' . static::hash($_SERVER['IP_ADDRESS']); + $ip = ';ip:' . static::hash($_SERVER['REMOTE_ADDR']); } else { $ip = ''; }