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
a0e986d7
Commit
a0e986d7
authored
Jul 25, 2013
by
Allan
Browse files
fixed initServer fail while having no IPv6 nor IPv4
parent
cba7a4e6
Changes
1
Show whitespace changes
Inline
Side-by-side
src/redis.c
View file @
a0e986d7
...
@@ -1446,7 +1446,7 @@ void initServer() {
...
@@ -1446,7 +1446,7 @@ void initServer() {
/* It should be ip_count plus one
/* It should be ip_count plus one
* because out of this branch, the server.ipfd_count would increase */
* because out of this branch, the server.ipfd_count would increase */
server
.
ipfd_count
=
ip_count
-
1
;
server
.
ipfd_count
+
=
(
ip_count
-
1
)
;
}
else
if
(
strchr
(
server
.
bindaddr
[
j
],
':'
))
{
}
else
if
(
strchr
(
server
.
bindaddr
[
j
],
':'
))
{
/* Bind IPv6 address. */
/* Bind IPv6 address. */
...
...
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