Permalink
Browse files

get priority from table in Lua axfrfilter

fixes #1857
  • Loading branch information...
1 parent d71a712 commit 0f2f9992c0862e9c4639e3e533f1d2a0103effeb @mind04 mind04 committed with mind04 Dec 22, 2014
Showing with 5 additions and 0 deletions.
  1. +5 −0 pdns/lua-auth.cc
View
@@ -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;

0 comments on commit 0f2f999

Please sign in to comment.