summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxhe <xw897002528@gmail.com>2020-06-07 13:34:55 +0800
committerxhe <xw897002528@gmail.com>2020-06-07 13:34:55 +0800
commit7eba5c308a640e8087a4da78a3840652313ac4d1 (patch)
treee8b4bc2e5ecf1efec84ca6635f13d9dd7e6b2ef2
parent44b76a75d2d9778491e6bf27119d32315706eda2 (diff)
downloadredis-7eba5c308a640e8087a4da78a3840652313ac4d1.tar.gz
return the correct proto version
HELLO should return the current proto version, while the code hardcoded 3
-rw-r--r--src/networking.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/networking.c b/src/networking.c
index 8d3e057b7..fdfbe6bf1 100644
--- a/src/networking.c
+++ b/src/networking.c
@@ -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);