From b9eda6d187d5f2c44040455ceb82ba803f9a901d Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Thu, 23 Jun 2016 10:23:03 +0200 Subject: [PATCH] rec: Set the existing policy tags in `dq` for `{pre,post}resolve` --- pdns/lua-recursor4.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pdns/lua-recursor4.cc b/pdns/lua-recursor4.cc index 0f1be6f80..84ad7d0e7 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' -- 2.40.0