Changeset

8898:e6ba0e5260b4

net.dns: Also cache records from the 'additional' section Could be getting A/AAAA records here when asking for SRV
author Kim Alvefur <zash@zash.se>
date Sun, 03 Jun 2018 00:40:42 +0200
parents 8897:102242a7ee60
children 8899:c72a6226ee31
files net/dns.lua
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/net/dns.lua	Sat Jun 09 00:02:06 2018 +0200
+++ b/net/dns.lua	Sun Jun 03 00:40:42 2018 +0200
@@ -892,6 +892,10 @@
 			self:remember(rr, rr.type);
 		end
 
+		for _, rr in pairs(response.additional) do
+			self:remember(rr, rr.type);
+		end
+
 		-- retire the query
 		local queries = self.active[response.header.id];
 		queries[response.question.raw] = nil;