From f0373f720f531a7135a24028d70db5b3bfe6bedf Mon Sep 17 00:00:00 2001 From: Binbin Date: Wed, 8 Dec 2021 17:25:56 +0800 Subject: [PATCH] Fix outdated protected-mode documentation in sentinel.conf (#9896) In 666b343, we modified the default value of protected-mode from yes to no. However, this change is not mentioned in sentinel.conf. Looking at the sentinel.conf alone, it is easy to make people think that in sentinel mode, we hava truned on the protected-mode. --- sentinel.conf | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/sentinel.conf b/sentinel.conf index b145ae518..4d211c06b 100644 --- a/sentinel.conf +++ b/sentinel.conf @@ -1,20 +1,9 @@ # Example sentinel.conf -# *** IMPORTANT *** -# -# By default Sentinel will not be reachable from interfaces different than -# localhost, either use the 'bind' directive to bind to a list of network -# interfaces, or disable protected mode with "protected-mode no" by -# adding it to this configuration file. -# -# Before doing that MAKE SURE the instance is protected from the outside -# world via firewalling or other means. -# -# For example you may use one of the following: -# -# bind 127.0.0.1 192.168.1.1 -# -# protected-mode no +# By default protected mode is disabled in sentinel mode. Sentinel is reachable +# from interfaces different than localhost. Make sure the sentinel instance is +# protected from the outside world via firewalling or other means. +protected-mode no # port # The port that this sentinel instance will run on