09-use-native-dns-resolver.patch 447 B

1234567891011
  1. --- a/src/core/ext/filters/client_channel/resolver/dns/c_ares/dns_resolver_ares.cc
  2. +++ b/src/core/ext/filters/client_channel/resolver/dns/c_ares/dns_resolver_ares.cc
  3. @@ -811,7 +811,7 @@
  4. };
  5. bool ShouldUseAres(y_absl::string_view resolver_env) {
  6. - return resolver_env.empty() || y_absl::EqualsIgnoreCase(resolver_env, "ares");
  7. + return !resolver_env.empty() && y_absl::EqualsIgnoreCase(resolver_env, "ares");
  8. }
  9. bool UseAresDnsResolver() {