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
1e7cff23
Commit
1e7cff23
authored
Jul 24, 2013
by
Allan
Browse files
fixed bug issue of #1213
parent
6ea8e094
Changes
1
Show whitespace changes
Inline
Side-by-side
src/redis.c
View file @
1e7cff23
...
...
@@ -1435,9 +1435,12 @@ void initServer() {
for (j = 0; j < server.bindaddr_count || j == 0; j++) {
if (server.bindaddr[j] == NULL) {
/* Bind * for both IPv6 and IPv4. */
server
.
ipfd
[
0
]
=
anetTcp6Server
(
server
.
neterr
,
server
.
port
,
NULL
);
if
(
server
.
ipfd
[
0
]
!=
ANET_ERR
)
server
.
ipfd_count
++
;
server
.
ipfd
[
1
]
=
anetTcpServer
(
server
.
neterr
,
server
.
port
,
NULL
);
server.ipfd[server.ipfd_count] = anetTcp6Server(server.neterr,server.port,NULL);
if (server.ipfd[server.ipfd_count] != ANET_ERR) server.ipfd_count++;
server.ipfd[server.ipfd_count] = anetTcpServer(server.neterr,server.port,NULL);
} else if (strchr(server.bindaddr[j],':')) {
/* Bind IPv6 address. */
server.ipfd[server.ipfd_count] = anetTcp6Server(server.neterr,server.port,server.bindaddr[j]);
...
...
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