fix
This commit is contained in:
parent
b196c138d9
commit
a6118f5daf
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user