Better error message for Caddy authorization

This commit is contained in:
Julien Nahum 2023-11-30 11:20:19 +01:00
parent 042b029d5f
commit 0b57ab4cdd
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ class CaddyRequestMiddleware
if (config('custom-domains.enabled') && !in_array($request->ip(), config('custom-domains.authorized_ips'))) {
return response()->json([
'success' => false,
'message' => 'Unauthorized',
'message' => 'Unauthorized IP',
], 401);
}