Skip to content

Commit

Permalink
Disable protected mode in Sentinel mode.
Browse files Browse the repository at this point in the history
Sentinel must be exposed, so protected mode is just an issue for users
in case Redis was started in Sentinel mode.

Related to redis#3279 and redis#3329.
  • Loading branch information
antirez committed Oct 31, 2018
1 parent 06a4acb commit 666b343
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/sentinel.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit 666b343

Please sign in to comment.