From b6782427803d9bc70472884b7ecd3356f8a0dab7 Mon Sep 17 00:00:00 2001 From: Cinzya Date: Wed, 22 Oct 2025 21:02:23 +0200 Subject: [PATCH] refactor: remove redundant --- app/Livewire/Settings/Advanced.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app/Livewire/Settings/Advanced.php b/app/Livewire/Settings/Advanced.php index adca1baa3..1edfc9638 100644 --- a/app/Livewire/Settings/Advanced.php +++ b/app/Livewire/Settings/Advanced.php @@ -89,13 +89,8 @@ public function submit() $allowsFromAnywhere = false; if (empty($this->allowed_ips)) { $allowsFromAnywhere = true; - } elseif ($this->allowed_ips === '0.0.0.0' || in_array('0.0.0.0', array_map('trim', explode(',', $this->allowed_ips)))) { + } elseif (in_array('0.0.0.0', array_map('trim', explode(',', $this->allowed_ips)))) { $allowsFromAnywhere = true; - } - - // Check if it's 0.0.0.0 (allow all) or empty - if ($this->allowed_ips === '0.0.0.0' || empty($this->allowed_ips)) { - // Keep as is - empty means no restriction, 0.0.0.0 means allow all } else { // Validate and clean up the entries $invalidEntries = [];