Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
55024e9a
Commit
55024e9a
authored
Sep 04, 2014
by
antirez
Browse files
Sentinel: don't set announce-ip if is empty.
parent
3cc31da3
Changes
1
Show whitespace changes
Inline
Side-by-side
src/sentinel.c
View file @
55024e9a
...
@@ -1433,6 +1433,7 @@ char *sentinelHandleConfiguration(char **argv, int argc) {
...
@@ -1433,6 +1433,7 @@ 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> */
if (strlen(argv[1]))
sentinel.announce_ip = sdsnew(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> */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment