On 08/25/2011 12:04 PM, Zane Bitter wrote:
In that case I think you may have a bug, because servername is not
set
unless the servername itself is resolvable as a hostname:
rc = getaddrinfo(arg, NULL,&hints,&res);
if (rc == 0) {
(*options)["servername"] = arg;
} else {
mh_err("Broker '%s' is not resolvable - ignoring", arg);
}
I guess in theory that's the case ... I would just remove this check.
However, the likelihood that
example.com has no A/AAAA records but does
have SRV records for a particular service is pretty small.
--
Russell Bryant