Update AuthenticateIPAccess.php
Fix a 500 error when processing a request with an IP filter
This commit is contained in:
parent
085fa8dcb5
commit
df64026449
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ class AuthenticateIPAccess
|
|||
}
|
||||
|
||||
$find = new IP($request->ip());
|
||||
foreach (json_decode($model->allowed_ips) as $ip) {
|
||||
foreach ($model->allowed_ips as $ip) {
|
||||
if (Range::parse($ip)->contains($find)) {
|
||||
return $next($request);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue