Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix

Andras Bacsaia6118f5daf0d
diff --git a/app/Http/Livewire/Server/Form.php b/app/Http/Livewire/Server/Form.php
index 62668d6ba5..816514aebb 100644
--- a/app/Http/Livewire/Server/Form.php
+++ b/app/Http/Livewire/Server/Form.php
@@ -122,14 +122,13 @@ class Form extends Component
}
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;