1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-12-03 15:40:59 +01:00

Merge pull request #14178 from NixOS/backport-14150-to-2.31-maintenance

[Backport 2.31-maintenance] libstore: fixup fakeSSH check
This commit is contained in:
internal-nix-ci[bot] 2025-10-07 22:12:56 +00:00 committed by GitHub
commit e8574843f1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -78,7 +78,7 @@ SSHMaster::SSHMaster(
oss << authority.host; oss << authority.host;
return std::move(oss).str(); return std::move(oss).str();
}()) }())
, fakeSSH(authority.host == "localhost") , fakeSSH(authority.to_string() == "localhost")
, keyFile(keyFile) , keyFile(keyFile)
, sshPublicHostKey(parsePublicHostKey(authority.host, sshPublicHostKey)) , sshPublicHostKey(parsePublicHostKey(authority.host, sshPublicHostKey))
, useMaster(useMaster && !fakeSSH) , useMaster(useMaster && !fakeSSH)