提交 778f753d 编写于 作者: A Allan 提交者: antirez

fixed initServer fail while having no IPv6 nor IPv4

上级 6c2b34a4
......@@ -1479,7 +1479,7 @@ void initServer() {
/* It should be ip_count plus one
* 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],':')) {
/* Bind IPv6 address. */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册