mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-27 08:16:14 +02:00
Pass common ssh options in isMasterRunning
This commit is contained in:
parent
5454fdcceb
commit
d5e1eb20a2
1 changed files with 4 additions and 1 deletions
|
@ -42,7 +42,10 @@ void SSHMaster::addCommonSSHOpts(Strings & args)
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SSHMaster::isMasterRunning() {
|
bool SSHMaster::isMasterRunning() {
|
||||||
auto res = runProgram(RunOptions {.program = "ssh", .args = {"-O", "check", host}, .mergeStderrToStdout = true});
|
Strings args = {"-O", "check", host};
|
||||||
|
addCommonSSHOpts(args);
|
||||||
|
|
||||||
|
auto res = runProgram(RunOptions {.program = "ssh", .args = args, .mergeStderrToStdout = true});
|
||||||
return res.first == 0;
|
return res.first == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue