fix cares resolution with default authority

pull/15073/head
Jan Tattermusch 7 years ago
parent bd44e485f6
commit dac71339ae
  1. 1
      src/core/ext/filters/client_channel/resolver/dns/c_ares/dns_resolver_ares.cc

@ -135,6 +135,7 @@ AresDnsResolver::AresDnsResolver(const ResolverArgs& args)
if (path[0] == '/') ++path;
name_to_resolve_ = gpr_strdup(path);
// Get DNS server from URI authority.
dns_server_ = nullptr;
if (0 != strcmp(args.uri->authority, "")) {
dns_server_ = gpr_strdup(args.uri->authority);
}

Loading…
Cancel
Save