mirror of
https://github.com/NixOS/nix
synced 2025-06-27 16:51:15 +02:00
Store: expose the protocol version used by a store
This commit is contained in:
parent
c9a08540c3
commit
070823baa4
6 changed files with 29 additions and 0 deletions
|
@ -303,6 +303,12 @@ struct LegacySSHStore : public Store
|
|||
{
|
||||
auto conn(connections->get());
|
||||
}
|
||||
|
||||
unsigned int getProtocol() override
|
||||
{
|
||||
auto conn(connections->get());
|
||||
return conn->remoteVersion;
|
||||
}
|
||||
};
|
||||
|
||||
static RegisterStoreImplementation regStore([](
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue