Commit 81efdcf1 by Taylor Otwell

Merge pull request #776 from JesseObrien/develop

Request::ip() doesn't return default 
parents 6405175d 67ac2f2f
......@@ -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;
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment