From: tcely Date: Mon, 4 Jun 2018 06:20:23 +0000 (-0400) Subject: uses tostring support of the qtype argument X-Git-Tag: dnsdist-1.4.0-rc3~42^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93fe5cbaff66288071d8258f502b4a6b65d9f26a;p=thirdparty%2Fpdns.git uses tostring support of the qtype argument --- diff --git a/modules/luabackend/test2/pdns-luabackend.lua b/modules/luabackend/test2/pdns-luabackend.lua index 50be50dc5b..7680b72e9e 100644 --- a/modules/luabackend/test2/pdns-luabackend.lua +++ b/modules/luabackend/test2/pdns-luabackend.lua @@ -141,9 +141,7 @@ end function lookup(qtype, qname, domain_id) - if ("table" == type(qtype)) then - qtype = qtype.name - end + qtype = tostring(qtype) logger(log_debug, "(l_lookup)", "qtype:", qtype, " qname:", qname, " domain_id:", domain_id ) rrset = {}