diff --git a/src/hydra-queue-runner/state.hh b/src/hydra-queue-runner/state.hh index 47e74f55..55c99afc 100644 --- a/src/hydra-queue-runner/state.hh +++ b/src/hydra-queue-runner/state.hh @@ -6,6 +6,7 @@ #include #include #include +#include #include #include @@ -293,7 +294,8 @@ struct Machine bool isLocalhost() { - return sshName == "localhost"; + std::regex r("^(ssh://|ssh-ng://)?localhost$"); + return std::regex_search(sshName, r); } };