Merge pull request #776 from JesseObrien/develop

Request::ip() doesn't return default
This commit is contained in:
Taylor Otwell
2012-06-20 09:56:01 -07:00

View File

@@ -102,7 +102,8 @@ class Request {
*/
public static function ip($default = '0.0.0.0')
{
return value(static::foundation()->getClientIp(), $default);
$client_ip = static::foundation()->getClientIp();
return $client_ip === NULL ? $default : $client_ip;
}
/**