]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
translate the new qtype table to a string
authortcely <tcely@users.noreply.github.com>
Fri, 25 May 2018 04:15:23 +0000 (00:15 -0400)
committertcely <tcely@users.noreply.github.com>
Fri, 25 May 2018 04:15:23 +0000 (00:15 -0400)
modules/luabackend/test2/pdns-luabackend.lua

index c22da8202a37079e333dedc867f15e4456ec5a0c..50be50dc5bf7416b403eeaccda14262c1239e6d6 100644 (file)
@@ -141,6 +141,9 @@ end
 
 
 function lookup(qtype, qname, domain_id)
+       if ("table" == type(qtype)) then
+               qtype = qtype.name
+       end
        logger(log_debug, "(l_lookup)", "qtype:", qtype, " qname:", qname, " domain_id:", domain_id )
 
        rrset = {}