From 9396ee496b451e02f3794fdb075ba41e4d00efc9 Mon Sep 17 00:00:00 2001
From: Yuchen Zeng <zyc@google.com>
Date: Mon, 8 Aug 2016 14:35:06 -0700
Subject: [PATCH] Support grpc_custermized_resolve_address

---
 src/core/ext/resolver/dns/c_ares/grpc_ares_wrapper.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/core/ext/resolver/dns/c_ares/grpc_ares_wrapper.c b/src/core/ext/resolver/dns/c_ares/grpc_ares_wrapper.c
index 3db974bd92..a664755136 100644
--- a/src/core/ext/resolver/dns/c_ares/grpc_ares_wrapper.c
+++ b/src/core/ext/resolver/dns/c_ares/grpc_ares_wrapper.c
@@ -318,6 +318,12 @@ grpc_ares_request *grpc_resolve_address_ares(grpc_exec_ctx *exec_ctx,
   grpc_error *err;
   int status;
 
+  if ((err = grpc_customized_resolve_address(name, default_port, addrs)) !=
+      GRPC_ERROR_CANCELLED) {
+    grpc_exec_ctx_sched(exec_ctx, on_done, err, NULL);
+    return NULL;
+  }
+
   grpc_ares_request *r = gpr_malloc(sizeof(grpc_ares_request));
   r->name = gpr_strdup(name);
   r->default_port = gpr_strdup(default_port);
-- 
GitLab