equal
deleted
inserted
replaced
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; |