diff --git a/src/replication.cpp b/src/replication.cpp index 730746081..44fa91452 100644 --- a/src/replication.cpp +++ b/src/replication.cpp @@ -985,6 +985,19 @@ LError: return; } +void processReplconfLicense(client *c, robj *arg) +{ + if (cserver.license_key != nullptr) + { + if (strcmp(cserver.license_key, szFromObj(arg)) == 0) { + addReplyError(c, "Each replica must have a unique license key"); + c->flags |= CLIENT_CLOSE_AFTER_REPLY; + return; + } + } + addReply(c, shared.ok); +} + /* REPLCONF