diff options
author | Alexander Polcyn <apolcyn@google.com> | 2018-10-12 11:56:29 -0700 |
---|---|---|
committer | Alexander Polcyn <apolcyn@google.com> | 2019-01-08 14:46:37 -0800 |
commit | 46a872864cfa3b3e81bbb650d6fd01e8a775c1b5 (patch) | |
tree | d900a8d938fdfa39a8691a618138b83b90f6fa0b /src/core/ext | |
parent | 26dddbb10dfc74db458d975f42346a9d677ca5ed (diff) |
Turn on c-ares as the default resolver
Diffstat (limited to 'src/core/ext')
-rw-r--r-- | src/core/ext/filters/client_channel/resolver/dns/c_ares/dns_resolver_ares.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/ext/filters/client_channel/resolver/dns/c_ares/dns_resolver_ares.cc b/src/core/ext/filters/client_channel/resolver/dns/c_ares/dns_resolver_ares.cc index abacd0c960..fba20000ef 100644 --- a/src/core/ext/filters/client_channel/resolver/dns/c_ares/dns_resolver_ares.cc +++ b/src/core/ext/filters/client_channel/resolver/dns/c_ares/dns_resolver_ares.cc @@ -472,7 +472,7 @@ static grpc_address_resolver_vtable ares_resolver = { grpc_resolve_address_ares, blocking_resolve_address_ares}; static bool should_use_ares(const char* resolver_env) { - return resolver_env != nullptr && gpr_stricmp(resolver_env, "ares") == 0; + return resolver_env == nullptr || gpr_stricmp(resolver_env, "ares") == 0; } void grpc_resolver_dns_ares_init() { |