aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/daemon.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2022-01-25 21:14:27 +0100
committerEelco Dolstra <edolstra@gmail.com>2022-01-25 21:15:58 +0100
commit35dbdbedd41dea45bf38ae11d74f72c39eb304c3 (patch)
treed9d72e5e38c227c95097fb6cdd39abc24986843a /src/libstore/daemon.cc
parentfcf3528ad1ad3fc0eeac9a1241b7edfebf67eb3d (diff)
nix store ping: Report Nix daemon version
Fixes #5952.
Diffstat (limited to 'src/libstore/daemon.cc')
-rw-r--r--src/libstore/daemon.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libstore/daemon.cc b/src/libstore/daemon.cc
index 101aa13a5..1ddd1a4d5 100644
--- a/src/libstore/daemon.cc
+++ b/src/libstore/daemon.cc
@@ -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();