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 | fbd3b9ada4df1acf4ed8e93493c60b37ecea7868 (patch) | |
tree | 1dd2ccd5d6a0e41a8759cbd37733921a99cf9a6b /net | |
parent | 3384ae63d933177621a0ba864095fc37d5ed751b (diff) | |
download | prosody-fbd3b9ada4df1acf4ed8e93493c60b37ecea7868.tar.gz prosody-fbd3b9ada4df1acf4ed8e93493c60b37ecea7868.zip |
net.dns: Unconditionally cache records found in answers
Diffstat (limited to 'net')
-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 |