This commit is contained in:
Andras Bacsai
2023-06-23 11:07:42 +02:00
parent c44319251a
commit 97231bb477
3 changed files with 4 additions and 2 deletions

View File

@@ -19,6 +19,8 @@ class PrivateKey extends Component
$uptime = instant_remote_process(['uptime'], $this->server);
if ($uptime) {
Toaster::success('Server is reachable with this private key.');
$this->server->settings->is_reachable = true;
$this->server->settings->is_usable = true;
}
} catch (\Exception $e) {
$this->server->settings->is_reachable = false;