mirror of
https://github.com/fluencelabs/redis
synced 2025-06-19 04:01:22 +00:00
Sentinel: don't set announce-ip if is empty.
This commit is contained in:
@ -1433,7 +1433,8 @@ char *sentinelHandleConfiguration(char **argv, int argc) {
|
|||||||
if (argc == 5) si->runid = sdsnew(argv[4]);
|
if (argc == 5) si->runid = sdsnew(argv[4]);
|
||||||
} else if (!strcasecmp(argv[0],"announce-ip") && argc == 2) {
|
} else if (!strcasecmp(argv[0],"announce-ip") && argc == 2) {
|
||||||
/* announce-ip <ip-address> */
|
/* announce-ip <ip-address> */
|
||||||
sentinel.announce_ip = sdsnew(argv[1]);
|
if (strlen(argv[1]))
|
||||||
|
sentinel.announce_ip = sdsnew(argv[1]);
|
||||||
} else if (!strcasecmp(argv[0],"announce-port") && argc == 2) {
|
} else if (!strcasecmp(argv[0],"announce-port") && argc == 2) {
|
||||||
/* announce-port <port> */
|
/* announce-port <port> */
|
||||||
sentinel.announce_port = atoi(argv[1]);
|
sentinel.announce_port = atoi(argv[1]);
|
||||||
|
Reference in New Issue
Block a user