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.
This commit is contained in:
antirez 2018-10-31 12:37:48 +01:00
parent 06a4acb7d3
commit 666b3437e6
1 changed files with 1 additions and 0 deletions

View File

@ -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. */