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 | 3d5ee7cea93b3eb651a2bf52b0c0de8e2ed6ad37 (patch) | |
tree | 1dd2ccd5d6a0e41a8759cbd37733921a99cf9a6b | |
parent | 6ddc9bd28b18e77a4117eb7e272481f1e97795ea (diff) | |
download | prosody-3d5ee7cea93b3eb651a2bf52b0c0de8e2ed6ad37.tar.gz prosody-3d5ee7cea93b3eb651a2bf52b0c0de8e2ed6ad37.zip |
net.dns: Unconditionally cache records found in answers
-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 |