Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
7058:e9f07febafb3 | 7059:7ec52755622f |
---|---|
860 and self.active[response.header.id][response.question.raw] then | 860 and self.active[response.header.id][response.question.raw] then |
861 --print('received response'); | 861 --print('received response'); |
862 --self.print(response); | 862 --self.print(response); |
863 | 863 |
864 for j,rr in pairs(response.answer) do | 864 for j,rr in pairs(response.answer) do |
865 self:remember(rr, response.question[1].type) | 865 if rr.name:sub(-#response.question[1].name, -1) == response.question[1].name then |
866 self:remember(rr, response.question[1].type) | |
867 end | |
866 end | 868 end |
867 | 869 |
868 -- retire the query | 870 -- retire the query |
869 local queries = self.active[response.header.id]; | 871 local queries = self.active[response.header.id]; |
870 queries[response.question.raw] = nil; | 872 queries[response.question.raw] = nil; |