Changeset

7059:7ec52755622f 0.9.9

Backout 88d54bec26b7 prior to release, as it certainly requires more testing
author Matthew Wild <mwild1@gmail.com>
date Fri, 08 Jan 2016 13:01:27 +0000
parents 7058:e9f07febafb3
children 7060:eed0632cd636
files net/dns.lua
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/net/dns.lua	Thu Jan 07 15:37:47 2016 +0000
+++ b/net/dns.lua	Fri Jan 08 13:01:27 2016 +0000
@@ -862,7 +862,9 @@
 					--self.print(response);
 
 					for j,rr in pairs(response.answer) do
-						self:remember(rr, response.question[1].type)
+						if rr.name:sub(-#response.question[1].name, -1) == response.question[1].name then
+							self:remember(rr, response.question[1].type)
+						end
 					end
 
 					-- retire the query