From 666b3437e684ae4ebe382006031d920c70c11275 Mon Sep 17 00:00:00 2001 From: antirez Date: Wed, 31 Oct 2018 12:37:48 +0100 Subject: [PATCH] Disable protected mode in Sentinel mode. Sentinel must be exposed, so protected mode is just an issue for users in case Redis was started in Sentinel mode. Related to #3279 and #3329. --- src/sentinel.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sentinel.c b/src/sentinel.c index 7b703aa33..f0901eeb6 100644 --- a/src/sentinel.c +++ b/src/sentinel.c @@ -459,6 +459,7 @@ struct redisCommand sentinelcmds[] = { * specific defaults. */ void initSentinelConfig(void) { server.port = REDIS_SENTINEL_PORT; + server.protected_mode = 0; /* Sentinel must be exposed. */ } /* Perform the Sentinel mode initialization. */