Update AuthenticateIPAccess.php
Fix a 500 error when processing a request with an IP filter
This commit is contained in:
parent
085fa8dcb5
commit
df64026449
|
@ -29,7 +29,7 @@ class AuthenticateIPAccess
|
||||||
}
|
}
|
||||||
|
|
||||||
$find = new IP($request->ip());
|
$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)) {
|
if (Range::parse($ip)->contains($find)) {
|
||||||
return $next($request);
|
return $next($request);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue