diff options
author | Matthew Wild <mwild1@gmail.com> | 2016-01-08 13:01:27 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2016-01-08 13:01:27 +0000 |
commit | 05b70955fafbd15f7f9d0d395ba644b98e5bb227 (patch) | |
tree | b1b4d1d29a3d8e20b0654a3b1b97f298a81b5230 /net/dns.lua | |
parent | 78d296cfe9cc363e74aa33c21b38e6764377f9f6 (diff) | |
download | prosody-05b70955fafbd15f7f9d0d395ba644b98e5bb227.tar.gz prosody-05b70955fafbd15f7f9d0d395ba644b98e5bb227.zip |
Backout 88d54bec26b7 prior to release, as it certainly requires more testingvault/0.9.9
Diffstat (limited to 'net/dns.lua')
-rw-r--r-- | net/dns.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/dns.lua b/net/dns.lua index 49958ed7..f56157d0 100644 --- a/net/dns.lua +++ b/net/dns.lua @@ -862,7 +862,9 @@ function resolver:receive(rset) -- - - - - - - - - - - - - - - - - receive --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 |