Commit 778f753d authored by Allan's avatar Allan Committed by antirez
Browse files

fixed initServer fail while having no IPv6 nor IPv4

parent 6c2b34a4
...@@ -1479,7 +1479,7 @@ void initServer() { ...@@ -1479,7 +1479,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. */
......
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