Refactor Server model to remove SSH multiplexing file
This commit is contained in:
parent
b846b40813
commit
86cf1ae319
1 changed files with 3 additions and 0 deletions
|
|
@ -5,6 +5,7 @@
|
|||
use App\Actions\Server\InstallDocker;
|
||||
use App\Actions\Server\StartSentinel;
|
||||
use App\Enums\ProxyTypes;
|
||||
use App\Helpers\SshMultiplexingHelper;
|
||||
use App\Jobs\CheckAndStartSentinelJob;
|
||||
use App\Notifications\Server\Reachable;
|
||||
use App\Notifications\Server\Unreachable;
|
||||
|
|
@ -1064,6 +1065,8 @@ public function validateConnection(bool $isManualCheck = true, bool $justCheckin
|
|||
{
|
||||
config()->set('constants.ssh.mux_enabled', ! $isManualCheck);
|
||||
|
||||
SshMultiplexingHelper::removeMuxFile($this);
|
||||
|
||||
if ($this->skipServer()) {
|
||||
return ['uptime' => false, 'error' => 'Server skipped.'];
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue