Better error message for Caddy authorization
This commit is contained in:
parent
042b029d5f
commit
0b57ab4cdd
|
@ -22,7 +22,7 @@ class CaddyRequestMiddleware
|
||||||
if (config('custom-domains.enabled') && !in_array($request->ip(), config('custom-domains.authorized_ips'))) {
|
if (config('custom-domains.enabled') && !in_array($request->ip(), config('custom-domains.authorized_ips'))) {
|
||||||
return response()->json([
|
return response()->json([
|
||||||
'success' => false,
|
'success' => false,
|
||||||
'message' => 'Unauthorized',
|
'message' => 'Unauthorized IP',
|
||||||
], 401);
|
], 401);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue