1
0
Fork 0
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:
Daiderd Jordan 2018-08-30 23:28:47 +02:00
parent c9a08540c3
commit 070823baa4
No known key found for this signature in database
GPG key ID: D02435D05B810C96
6 changed files with 29 additions and 0 deletions

View file

@ -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([](