Commit a4a856d5 authored by xhe's avatar xhe Committed by antirez
Browse files

return the correct proto version

HELLO should return the current proto version, while the code hardcoded
3
parent e2046b30
...@@ -2527,7 +2527,7 @@ void helloCommand(client *c) { ...@@ -2527,7 +2527,7 @@ void helloCommand(client *c) {
addReplyBulkCString(c,REDIS_VERSION); addReplyBulkCString(c,REDIS_VERSION);
addReplyBulkCString(c,"proto"); addReplyBulkCString(c,"proto");
addReplyLongLong(c,3); addReplyLongLong(c,ver);
addReplyBulkCString(c,"id"); addReplyBulkCString(c,"id");
addReplyLongLong(c,c->id); addReplyLongLong(c,c->id);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment