aboutsummaryrefslogtreecommitdiffstats
path: root/net/dns.lua
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
commitdf0b6a6e97de943c644dc21505dc76c3a2dfdae8 (patch)
tree1dd2ccd5d6a0e41a8759cbd37733921a99cf9a6b /net/dns.lua
parent6ec3c0bee0f0e657b54551b2f66c7de2a5bda468 (diff)
downloadprosody-df0b6a6e97de943c644dc21505dc76c3a2dfdae8.tar.gz
prosody-df0b6a6e97de943c644dc21505dc76c3a2dfdae8.zip
net.dns: Unconditionally cache records found in answers
Diffstat (limited to 'net/dns.lua')
-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