fix: if mux conn fails, still use it without mux + save priv key with better logic

This commit is contained in:
Andras Bacsai
2024-11-22 10:06:12 +01:00
parent 9dd982b722
commit 821538911f
2 changed files with 16 additions and 22 deletions

View File

@@ -1059,10 +1059,6 @@ $schema://$host {
return ['uptime' => false, 'error' => 'Server skipped.'];
}
try {
// Make sure the private key is stored
if ($this->privateKey) {
$this->privateKey->storeInFileSystem();
}
instant_remote_process(['ls /'], $this);
if ($this->settings->is_reachable === false) {
$this->settings->is_reachable = true;