We still just created one large vhosts pool for all tags containing all the
hosts.
char num_str[MAX_INT_STRLEN];
unsigned int i, j;
- if (host->down)
+ if (host->down || host->tag != tag)
return;
ip_str = net_ip2addr(&host->ip);
/* rebuild vhosts */
array_clear(&tag->vhosts);
array_foreach(&list->hosts, hostp) {
- if ((*hostp)->down)
+ if ((*hostp)->down || (*hostp)->tag != tag)
continue;
for (i = 0; i < (*hostp)->vhost_count; i++) {
vhost = array_append_space(&tag->vhosts);