diff --git a/app/Http/Livewire/Server/Form.php b/app/Http/Livewire/Server/Form.php index 62668d6ba..816514aeb 100644 --- a/app/Http/Livewire/Server/Form.php +++ b/app/Http/Livewire/Server/Form.php @@ -122,14 +122,13 @@ public function delete() } public function submit() { - $validDomainsForServers = collect(['host.docker.internal', 'coolify-testing-host']); - if ($validDomainsForServers->contains($this->server->ip)) { - $this->validate(); - } else { + if(isCloud() && !isDev()) { $this->validate(); $this->validate([ 'server.ip' => 'required|ip', ]); + } else { + $this->validate(); } $uniqueIPs = Server::all()->reject(function (Server $server) { return $server->id === $this->server->id;