diff options
-rw-r--r-- | src/networking.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/networking.c b/src/networking.c index 7b6f46b34..0c2760504 100644 --- a/src/networking.c +++ b/src/networking.c @@ -1410,7 +1410,9 @@ void clientCommand(redisClient *c) { while ((ln = listNext(&li)) != NULL) { client = listNodeValue(ln); if (addr && strcmp(getClientPeerId(client),addr) != 0) continue; - if (type != -1 && getClientType(client) != type) continue; + if (type != -1 && + (client->flags & REDIS_MASTER || + getClientType(client) != type)) continue; if (id != 0 && client->id != id) continue; if (c == client && skipme) continue; |