diff --git a/app/Models/Server.php b/app/Models/Server.php index 56aa58e87..60d0da3ed 100644 --- a/app/Models/Server.php +++ b/app/Models/Server.php @@ -925,7 +925,7 @@ $schema://$host { public function isFunctional() { - $isFunctional = $this->settings->is_reachable && $this->settings->is_usable && $this->settings->force_disabled === false && $this->ip !== '1.2.3.4'; + $isFunctional = data_get($this->settings, 'is_reachable') && data_get($this->settings, 'is_usable') && data_get($this->settings, 'force_disabled') === false && $this->ip !== '1.2.3.4'; if ($isFunctional === false) { Storage::disk('ssh-mux')->delete($this->muxFilename());