From 0f2f9992c0862e9c4639e3e533f1d2a0103effeb Mon Sep 17 00:00:00 2001 From: Kees Monshouwer Date: Mon, 22 Dec 2014 19:51:20 +0100 Subject: [PATCH] get priority from table in Lua axfrfilter fixes #1857 --- pdns/lua-auth.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pdns/lua-auth.cc b/pdns/lua-auth.cc index 05d8c82095..24e454d968 100644 --- a/pdns/lua-auth.cc +++ b/pdns/lua-auth.cc @@ -101,6 +101,11 @@ bool AuthLua::axfrfilter(const ComboAddress& remote, const string& zone, const D if(!getFromTable("ttl", rr.ttl)) rr.ttl=3600; + if(!getFromTable("priority", tmpnum)) + rr.priority=0; + else + rr.priority=tmpnum; + if(!getFromTable("qname", rr.qname)) rr.qname = zone; -- 2.47.2