diff options
author | Kim Alvefur <zash@zash.se> | 2018-06-03 00:40:42 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-06-03 00:40:42 +0200 |
commit | accf9f8c1a0643ca654566a669909a6279371061 (patch) | |
tree | 49ce1471ee03b83b8bfcc5d944015ac538aac775 | |
parent | 65dca31ca48b4263979429f9f4a86f3255a1c85b (diff) | |
download | prosody-accf9f8c1a0643ca654566a669909a6279371061.tar.gz prosody-accf9f8c1a0643ca654566a669909a6279371061.zip |
net.dns: Also cache records from the 'additional' section
Could be getting A/AAAA records here when asking for SRV
-rw-r--r-- | net/dns.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/dns.lua b/net/dns.lua index 93c1805b..b69ba953 100644 --- a/net/dns.lua +++ b/net/dns.lua @@ -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; |