diff options
author | Chris Dickinson <christopher.s.dickinson@gmail.com> | 2014-11-15 18:33:20 -0800 |
---|---|---|
committer | Chris Dickinson <christopher.s.dickinson@gmail.com> | 2014-11-17 12:34:37 -0800 |
commit | 0fef2500900aa115271b456c76633ce47765c5d8 (patch) | |
tree | e44ee08cb30ad5515358cd6b624f20729268f3cf /src | |
parent | 743a009bad64c4302a724f70c42d73601a16aed4 (diff) | |
download | node-new-0fef2500900aa115271b456c76633ce47765c5d8.tar.gz |
dns: propagate domain for c-ares methods
Fixes: https://github.com/joyent/node/issues/5471
PR-URL: https://github.com/joyent/node/pull/8732
Reviewed-by: Trevor Norris <trev.norris@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/cares_wrap.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cares_wrap.cc b/src/cares_wrap.cc index 356df86907..66b4806e7e 100644 --- a/src/cares_wrap.cc +++ b/src/cares_wrap.cc @@ -230,6 +230,8 @@ class QueryWrap : public AsyncWrap { public: QueryWrap(Environment* env, Local<Object> req_wrap_obj) : AsyncWrap(env, req_wrap_obj, AsyncWrap::PROVIDER_CARES) { + if (env->in_domain()) + req_wrap_obj->Set(env->domain_string(), env->domain_array()->Get(0)); } virtual ~QueryWrap() { |