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
a2af2a30
Unverified
Commit
a2af2a30
authored
Mar 23, 2021
by
cl1118
Committed by
GitHub
Mar 23, 2021
Browse files
Update sentinel.c (#8686)
parent
725762c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/sentinel.c
View file @
a2af2a30
...
@@ -2039,12 +2039,12 @@ const char *sentinelHandleConfiguration(char **argv, int argc) {
...
@@ -2039,12 +2039,12 @@ const char *sentinelHandleConfiguration(char **argv, int argc) {
} else if (!strcasecmp(argv[0],"resolve-hostnames") && argc == 2) {
} else if (!strcasecmp(argv[0],"resolve-hostnames") && argc == 2) {
/* resolve-hostnames <yes|no> */
/* resolve-hostnames <yes|no> */
if ((sentinel.resolve_hostnames = yesnotoi(argv[1])) == -1) {
if ((sentinel.resolve_hostnames = yesnotoi(argv[1])) == -1) {
return "Please specify yes or no
t
for the resolve-hostnames option.";
return "Please specify yes or no for the resolve-hostnames option.";
}
}
} else if (!strcasecmp(argv[0],"announce-hostnames") && argc == 2) {
} else if (!strcasecmp(argv[0],"announce-hostnames") && argc == 2) {
/* announce-hostnames <yes|no> */
/* announce-hostnames <yes|no> */
if ((sentinel.announce_hostnames = yesnotoi(argv[1])) == -1) {
if ((sentinel.announce_hostnames = yesnotoi(argv[1])) == -1) {
return "Please specify yes or no
t
for the announce-hostnames option.";
return "Please specify yes or no for the announce-hostnames option.";
}
}
} else {
} else {
return "Unrecognized sentinel configuration statement.";
return "Unrecognized sentinel configuration statement.";
...
...
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