mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 17:10:50 +00:00
fixed initServer fail while having no IPv6 nor IPv4
This commit is contained in:
parent
cba7a4e69a
commit
a0e986d7f2
@ -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. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user