1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-28 13:41:15 +02:00

nix store ping: Report Nix daemon version

Fixes #5952.
This commit is contained in:
Eelco Dolstra 2022-01-25 21:14:27 +01:00
parent fcf3528ad1
commit 35dbdbedd4
9 changed files with 37 additions and 3 deletions

View file

@ -981,7 +981,11 @@ void processConnection(
readInt(from);
}
readInt(from); // obsolete reserveSpace
if (GET_PROTOCOL_MINOR(clientVersion) >= 11)
readInt(from); // obsolete reserveSpace
if (GET_PROTOCOL_MINOR(clientVersion) >= 33)
to << nixVersion;
/* Send startup error messages to the client. */
tunnelLogger->startWork();