Changeset

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
parents 6797:509b70437035
children 6864:0129ffcaa7ab
files net/dns.lua
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
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