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 f727bf95f7
commit 7e6d1fae1b

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