From: Kees Monshouwer Date: Mon, 22 Dec 2014 18:51:20 +0000 (+0100) Subject: get priority from table in Lua axfrfilter X-Git-Tag: auth-3.4.2~15^2~27 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0f2f9992c0862e9c4639e3e533f1d2a0103effeb;p=thirdparty%2Fpdns.git get priority from table in Lua axfrfilter fixes #1857 --- 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;