Software /
code /
prosody
Diff
net/dns.lua @ 6863:88d54bec26b7
net.dns: Unconditionally cache records found in answers
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 25 May 2015 23:16:11 +0100 |
parent | 6645:4f934cf03bc9 |
child | 6866:abff7543b79c |
child | 7054:94d5e2f33a10 |
line wrap: on
line diff
--- a/net/dns.lua Thu Aug 20 09:14:15 2015 +0200 +++ b/net/dns.lua Mon May 25 23:16:11 2015 +0100 @@ -855,9 +855,7 @@ --self.print(response); for j,rr in pairs(response.answer) do - if rr.name:sub(-#response.question[1].name, -1) == response.question[1].name then - self:remember(rr, response.question[1].type) - end + self:remember(rr, response.question[1].type) end -- retire the query