return the correct proto version

HELLO should return the current proto version, while the code hardcoded
3
This commit is contained in:
xhe 2020-06-07 13:34:55 +08:00
parent 44b76a75d2
commit 7eba5c308a

View File

@ -2522,7 +2522,7 @@ void helloCommand(client *c) {
addReplyBulkCString(c,REDIS_VERSION);
addReplyBulkCString(c,"proto");
addReplyLongLong(c,3);
addReplyLongLong(c,ver);
addReplyBulkCString(c,"id");
addReplyLongLong(c,c->id);