From 08654345bcb55db800d8143d7bd1eaa4e09c2b67 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(-) (limited to 'net/dns.lua') 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