aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/dns.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/dns.lua b/net/dns.lua
index 04b2cf22..5d5f512f 100644
--- a/net/dns.lua
+++ b/net/dns.lua
@@ -726,7 +726,8 @@ function resolver:receive(rset) -- - - - - - - - - - - - - - - - - receive
local packet = sock:receive();
if packet then
response = self:decode(packet);
- if response then
+ if response and self.active[response.header.id]
+ and self.active[response.header.id][response.question.raw] then
--print('received response');
--self.print(response);