diff --git a/laravel/request.php b/laravel/request.php index 510f64eb..84763449 100644 --- a/laravel/request.php +++ b/laravel/request.php @@ -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; } /**