Commit a0e986d7 authored by Allan's avatar Allan
Browse files

fixed initServer fail while having no IPv6 nor IPv4

parent cba7a4e6
......@@ -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. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment