vector<entity_addrvec_t> addrs;
bool success = parse_ip_port_vec(
hosts, addrs,
- for_mkfs ? entity_addr_t::TYPE_MSGR2 : entity_addr_t::TYPE_ANY);
+ entity_addr_t::TYPE_ANY);
free(hosts);
if (!success)
return -EINVAL;
string name = prefix;
name += n;
if (addrs[i].v.size() == 1) {
- _add_ambiguous_addr(name, addrs[i].front(), 0);
+ _add_ambiguous_addr(name, addrs[i].front(), 0, for_mkfs);
} else {
+ // they specified an addrvec, so let's assume they also specified
+ // the addr *type* and *port*. (we could possibly improve this?)
add(name, addrs[i], 0);
}
}