mirror of
https://github.com/redis/redis.git
synced 2026-04-21 03:01:35 -04:00
fixed initServer fail while having no IPv6 nor IPv4
This commit is contained in:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user