fix: server is functional check
This commit is contained in:
@@ -58,7 +58,7 @@ class ByIp extends Component
|
||||
{
|
||||
$this->validate();
|
||||
try {
|
||||
if (!$this->private_key_id) {
|
||||
if (is_null($this->private_key_id)) {
|
||||
return $this->emit('error', 'You must select a private key');
|
||||
}
|
||||
$server = Server::create([
|
||||
|
||||
@@ -17,7 +17,7 @@ class Status extends Component
|
||||
public function getProxyStatus()
|
||||
{
|
||||
try {
|
||||
if (data_get($this->server, 'settings.is_usable') && data_get($this->server, 'settings.is_reachable')) {
|
||||
if ($this->server->isFunctional()) {
|
||||
$container = getContainerStatus(server: $this->server, container_id: 'coolify-proxy');
|
||||
$this->server->proxy->status = $container;
|
||||
$this->server->save();
|
||||
|
||||
Reference in New Issue
Block a user