This commit is contained in:
Andras Bacsai 2023-10-13 09:34:11 +02:00
parent b196c138d9
commit a6118f5daf

View File

@ -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;