aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2015-05-25 23:16:11 +0100
committerMatthew Wild <mwild1@gmail.com>2015-05-25 23:16:11 +0100
commitfbd3b9ada4df1acf4ed8e93493c60b37ecea7868 (patch)
tree1dd2ccd5d6a0e41a8759cbd37733921a99cf9a6b /net
parent3384ae63d933177621a0ba864095fc37d5ed751b (diff)
downloadprosody-fbd3b9ada4df1acf4ed8e93493c60b37ecea7868.tar.gz
prosody-fbd3b9ada4df1acf4ed8e93493c60b37ecea7868.zip
net.dns: Unconditionally cache records found in answers
Diffstat (limited to 'net')
-rw-r--r--net/dns.lua4
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