From: Remi Gacogne Date: Thu, 23 Jun 2016 08:23:03 +0000 (+0200) Subject: rec: Set the existing policy tags in `dq` for `{pre,post}resolve` X-Git-Tag: auth-4.0.0-rc1~24^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9eda6d187d5f2c44040455ceb82ba803f9a901d;p=thirdparty%2Fpdns.git rec: Set the existing policy tags in `dq` for `{pre,post}resolve` --- diff --git a/pdns/lua-recursor4.cc b/pdns/lua-recursor4.cc index 0f1be6f806..84ad7d0e7d 100644 --- a/pdns/lua-recursor4.cc +++ b/pdns/lua-recursor4.cc @@ -512,6 +512,9 @@ bool RecursorLua4::genhook(luacall_t& func, const ComboAddress& remote,const Com dq->tag = tag; dq->ednsOptions = ednsOpts; dq->isTcp = isTcp; + if (policyTags) { + dq->policyTags = *policyTags; + } bool handled=func(dq); if(variable) *variable |= dq->variable; // could still be set to indicate this *name* is variable, even if not 'handled'