Commit 7eba5c30 authored by xhe's avatar xhe
Browse files

return the correct proto version

HELLO should return the current proto version, while the code hardcoded
3
parent 44b76a75
...@@ -2522,7 +2522,7 @@ void helloCommand(client *c) { ...@@ -2522,7 +2522,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