mirror of
https://github.com/ProxyPanel/ProxyPanel.git
synced 2026-04-05 03:58:39 +00:00
修改异常IP判断条件
This commit is contained in:
@@ -48,7 +48,7 @@ class isForbidden
|
||||
$ipLocation = IP::getIPInfo($ip);
|
||||
|
||||
// 拒绝无IP请求
|
||||
if (empty($ipLocation) || empty($ipLocation['city'])) {
|
||||
if ( ! $ipLocation || empty(array_filter($ipLocation))) {
|
||||
return Response::view(
|
||||
'auth.error',
|
||||
['message' => trans('error.ForbiddenAccess')],
|
||||
|
||||
Reference in New Issue
Block a user