From 93c65f6a7998f7b9c646dec0f063b1fc0ca0a74a Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Thu, 14 Sep 2023 18:07:29 +0200 Subject: [PATCH] fix: ip check --- app/Http/Livewire/Server/Form.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/Http/Livewire/Server/Form.php b/app/Http/Livewire/Server/Form.php index b288d3bfa..5bf298c31 100644 --- a/app/Http/Livewire/Server/Form.php +++ b/app/Http/Livewire/Server/Form.php @@ -88,11 +88,7 @@ class Form extends Component public function submit() { $this->validate(); - $uniqueIPs = Server::all()->pluck('ip')->toArray(); - if (in_array($this->server->ip, $uniqueIPs)) { - $this->emit('error', 'IP address is already in use by another team.'); - return; - } + $this->server->settings->wildcard_domain = $this->wildcard_domain; $this->server->settings->cleanup_after_percentage = $this->cleanup_after_percentage; $this->server->settings->save();