From a772eb598a83ec7d9fbc26c13324e79e2c4e2ee2 Mon Sep 17 00:00:00 2001 From: Kees Monshouwer Date: Tue, 28 Jul 2015 14:43:38 +0200 Subject: [PATCH] add dots to qnames in policy.lua --- regression-tests.nobackend/lua-policy/policy.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/regression-tests.nobackend/lua-policy/policy.lua b/regression-tests.nobackend/lua-policy/policy.lua index 8f4b9d58c..c9a8a1d14 100644 --- a/regression-tests.nobackend/lua-policy/policy.lua +++ b/regression-tests.nobackend/lua-policy/policy.lua @@ -3,8 +3,8 @@ io.flush() function police (req, resp, isTcp) qname, qtype = req:getQuestion() - if qname == 'drop.minimal.com' then print 'dropping!' io.flush() return pdns.DROP end - if qname == 'truncate.minimal.com' then print 'truncating!' io.flush() return pdns.TRUNCATE end + if qname == 'drop.minimal.com.' then print 'dropping!' io.flush() return pdns.DROP end + if qname == 'truncate.minimal.com.' then print 'truncating!' io.flush() return pdns.TRUNCATE end return pdns.PASS end -- 2.40.0