aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/grpc/patches/09-use-native-dns-resolver.patch
blob: 8b7cfe4948d21807f965e26e23ee4f55830f4e82 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- 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
@@ -811,7 +811,7 @@
 };
 
 bool ShouldUseAres(y_absl::string_view resolver_env) {
-  return resolver_env.empty() || y_absl::EqualsIgnoreCase(resolver_env, "ares");
+  return !resolver_env.empty() && y_absl::EqualsIgnoreCase(resolver_env, "ares");
 }
 
 bool UseAresDnsResolver() {