diff options
Diffstat (limited to 'src/libstore/ssh.cc')
-rw-r--r-- | src/libstore/ssh.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/ssh.cc b/src/libstore/ssh.cc index fdae083ba..ea9cba578 100644 --- a/src/libstore/ssh.cc +++ b/src/libstore/ssh.cc @@ -12,7 +12,7 @@ SSHMaster::SSHMaster(const std::string & host, const std::string & keyFile, cons , compress(compress) , logFD(logFD) { - if (host == "" || hasPrefix(host, "-")) + if (host == "" || host.starts_with("-")) throw Error("invalid SSH host name '%s'", host); auto state(state_.lock()); |