fixed initServer fail while having no IPv6 nor IPv4

This commit is contained in:
Allan 2013-07-25 15:36:00 +08:00
parent d3736ba400
commit 74ff4fc728

View File

@ -1446,7 +1446,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. */