net.dns: Also cache records from the 'additional' section

Could be getting A/AAAA records here when asking for SRV
This commit is contained in:
Kim Alvefur 2018-06-03 00:40:42 +02:00
parent ad268c9db3
commit 73a7fa134d

View file

@ -892,6 +892,10 @@ function resolver:feed(sock, packet, force)
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;