diff options
author | Matthew Wild <mwild1@gmail.com> | 2015-05-25 23:16:11 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2015-05-25 23:16:11 +0100 |
commit | 08654345bcb55db800d8143d7bd1eaa4e09c2b67 (patch) | |
tree | 1dd2ccd5d6a0e41a8759cbd37733921a99cf9a6b /net/dns.lua | |
parent | 37438ca56edd972e4e5cbea24cd12066c12e7dee (diff) | |
download | prosody-08654345bcb55db800d8143d7bd1eaa4e09c2b67.tar.gz prosody-08654345bcb55db800d8143d7bd1eaa4e09c2b67.zip |
net.dns: Unconditionally cache records found in answers
Diffstat (limited to 'net/dns.lua')
-rw-r--r-- | net/dns.lua | 4 |
1 files changed, 1 insertions, 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 |