From 0f6754746c9174992bd59fc3e167d0a39f9526ee Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Tue, 5 Oct 2010 18:55:17 +0100 Subject: net.dns: Add 'force' parameter to resolver:feed() to force decoding a packet even if it doesn't match an outstanding request --- net/dns.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/dns.lua b/net/dns.lua index fcc679e3..41a0c536 100644 --- a/net/dns.lua +++ b/net/dns.lua @@ -798,11 +798,11 @@ function resolver:receive(rset) -- - - - - - - - - - - - - - - - - receive end -function resolver:feed(sock, packet) +function resolver:feed(sock, packet, force) --print('receive'); print(self.socket); self.time = socket.gettime(); - local response = self:decode(packet); + local response = self:decode(packet, force); if response and self.active[response.header.id] and self.active[response.header.id][response.question.raw] then --print('received response'); -- cgit v1.2.3