Skip to content

Commit

Permalink
Better error message for Caddy authorization
Browse files Browse the repository at this point in the history
  • Loading branch information
JhumanJ committed Nov 30, 2023
1 parent 042b029 commit 0b57ab4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Middleware/CaddyRequestMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function handle(Request $request, Closure $next)
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);
}

Expand Down

0 comments on commit 0b57ab4

Please sign in to comment.