mirror of
https://github.com/tiennm99/coolify.git
synced 2026-09-20 04:23:16 +00:00
refactor(dns-validation): rename DNS validation functions for consistency and clarity, and remove unused code
This commit is contained in:
1 parent
ccc9ceb734
commit
a7671ed379
6 files changed
+38
-110
No files matched your search
@@ -28,7 +28,7 @@ class ApiAllowed
|
||||
$allowedIps = array_map('trim', $allowedIps);
|
||||
$allowedIps = array_filter($allowedIps); // Remove empty entries
|
||||
|
||||
if (! empty($allowedIps) && ! check_ip_against_allowlist($request->ip(), $allowedIps)) {
|
||||
if (! empty($allowedIps) && ! checkIPAgainstAllowlist($request->ip(), $allowedIps)) {
|
||||
return response()->json(['success' => true, 'message' => 'You are not allowed to access the API.'], 403);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user