Commit 666b3437 authored by antirez's avatar antirez
Browse files

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.
parent 06a4acb7
...@@ -459,6 +459,7 @@ struct redisCommand sentinelcmds[] = { ...@@ -459,6 +459,7 @@ struct redisCommand sentinelcmds[] = {
* specific defaults. */ * specific defaults. */
void initSentinelConfig(void) { void initSentinelConfig(void) {
server.port = REDIS_SENTINEL_PORT; server.port = REDIS_SENTINEL_PORT;
server.protected_mode = 0; /* Sentinel must be exposed. */
} }
/* Perform the Sentinel mode initialization. */ /* Perform the Sentinel mode initialization. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment