From 825e9b7e9d300affc730fe216cbf13e0c76f0468 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Tue, 5 Nov 2024 16:40:01 +0100 Subject: [PATCH] fix: server validation --- app/Models/Server.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/Models/Server.php b/app/Models/Server.php index e9b6fd929..55a4742c0 100644 --- a/app/Models/Server.php +++ b/app/Models/Server.php @@ -974,10 +974,10 @@ $schema://$host { public function serverStatus(): bool { - if ($this->isFunctional() === false) { + if ($this->status() === false) { return false; } - if ($this->status() === false) { + if ($this->isFunctional() === false) { return false; } @@ -986,9 +986,6 @@ $schema://$host { public function status(): bool { - if ($this->isFunctional() === false) { - return false; - } ['uptime' => $uptime] = $this->validateConnection(false); if ($uptime === false) { foreach ($this->applications() as $application) {