mirror of
https://github.com/tiennm99/coolify.git
synced 2026-04-17 19:21:36 +00:00
refactor: replace allowed IPs validation logic with regex
This commit is contained in:
@@ -89,7 +89,7 @@ class Advanced extends Component
|
||||
$allowsFromAnywhere = false;
|
||||
if (empty($this->allowed_ips)) {
|
||||
$allowsFromAnywhere = true;
|
||||
} elseif ($this->allowed_ips === '0.0.0.0' || str_contains($this->allowed_ips, '0.0.0.0')) {
|
||||
} elseif ($this->allowed_ips === '0.0.0.0' || in_array('0.0.0.0', array_map('trim', explode(',', $this->allowed_ips)))) {
|
||||
$allowsFromAnywhere = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user