aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-06-09 00:02:06 +0200
committerKim Alvefur <zash@zash.se>2018-06-09 00:02:06 +0200
commit711e8f02f27a9c9df585608d7e6a191a3f268c94 (patch)
tree411f123fe1776bc77a503a79ce934bec6ce73300 /net
parent4009e3e2e265fd1dd236ff68791bcafff35dac21 (diff)
downloadprosody-711e8f02f27a9c9df585608d7e6a191a3f268c94.tar.gz
prosody-711e8f02f27a9c9df585608d7e6a191a3f268c94.zip
net.dns: Cache all records from the 'answer' section (fixes #487)
This should preserve CNAME records included here
Diffstat (limited to 'net')
-rw-r--r--net/dns.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dns.lua b/net/dns.lua
index eba2b5a0..93c1805b 100644
--- a/net/dns.lua
+++ b/net/dns.lua
@@ -889,7 +889,7 @@ function resolver:feed(sock, packet, force)
--self.print(response);
for _, rr in pairs(response.answer) do
- self:remember(rr, response.question[1].type);
+ self:remember(rr, rr.type);
end
-- retire the query