diff --git a/src/cluster.c b/src/cluster.c index ed3f870a..217ffee7 100644 --- a/src/cluster.c +++ b/src/cluster.c @@ -2408,7 +2408,8 @@ void clusterCron(void) { clusterLink *link; fd = anetTcpNonBlockBindConnect(server.neterr, node->ip, - node->port+REDIS_CLUSTER_PORT_INCR, server.bindaddr[0]); + node->port+REDIS_CLUSTER_PORT_INCR, + server.bindaddr_count ? server.bindaddr[0] : NULL); if (fd == -1) { redisLog(REDIS_DEBUG, "Unable to connect to " "Cluster Node [%s]:%d -> %s", node->ip,