Skip to content

Commit a4a856d

Browse files
xheboxantirez
authored andcommitted
return the correct proto version
HELLO should return the current proto version, while the code hardcoded 3
1 parent e2046b3 commit a4a856d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/networking.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2527,7 +2527,7 @@ void helloCommand(client *c) {
25272527
addReplyBulkCString(c,REDIS_VERSION);
25282528

25292529
addReplyBulkCString(c,"proto");
2530-
addReplyLongLong(c,3);
2530+
addReplyLongLong(c,ver);
25312531

25322532
addReplyBulkCString(c,"id");
25332533
addReplyLongLong(c,c->id);

0 commit comments

Comments
 (0)