Commit 0a6cbabb authored by antirez's avatar antirez
Browse files

Sentinel: don't set announce-ip if is empty.

parent c9437fe5
......@@ -1433,6 +1433,7 @@ char *sentinelHandleConfiguration(char **argv, int argc) {
if (argc == 5) si->runid = sdsnew(argv[4]);
} else if (!strcasecmp(argv[0],"announce-ip") && argc == 2) {
/* announce-ip <ip-address> */
if (strlen(argv[1]))
sentinel.announce_ip = sdsnew(argv[1]);
} else if (!strcasecmp(argv[0],"announce-port") && argc == 2) {
/* announce-port <port> */
......
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