Changeset

8897:102242a7ee60

net.dns: Cache all records from the 'answer' section (fixes #487) This should preserve CNAME records included here
author Kim Alvefur <zash@zash.se>
date Sat, 09 Jun 2018 00:02:06 +0200
parents 8887:c47f220580fd
children 8898:e6ba0e5260b4
files net/dns.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/net/dns.lua	Fri Jun 08 16:02:57 2018 +0200
+++ b/net/dns.lua	Sat Jun 09 00:02:06 2018 +0200
@@ -889,7 +889,7 @@
 		--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