Software /
code /
prosody
Diff
net/dns.lua @ 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 |
parent | 7056:7b0651e4534f |
child | 7061:eda0feeaf759 |
child | 7093:388281be2bc7 |
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