From df0b6a6e97de943c644dc21505dc76c3a2dfdae8 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Mon, 25 May 2015 23:16:11 +0100 Subject: net.dns: Unconditionally cache records found in answers --- net/dns.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/net/dns.lua b/net/dns.lua index 763ee9ec..7ec13c81 100644 --- a/net/dns.lua +++ b/net/dns.lua @@ -855,9 +855,7 @@ function resolver:receive(rset) -- - - - - - - - - - - - - - - - - receive --self.print(response); for j,rr in pairs(response.answer) do - if rr.name:sub(-#response.question[1].name, -1) == response.question[1].name then - self:remember(rr, response.question[1].type) - end + self:remember(rr, response.question[1].type) end -- retire the query -- cgit v1.2.3