# HG changeset patch # User Matthew Wild # Date 1286301317 -3600 # Node ID e344b00f2cc99eaeb961ddcc465b18926265fc37 # Parent 4495403470cb6162875da105b081ec11cc6a9776 net.dns: Add 'force' parameter to resolver:feed() to force decoding a packet even if it doesn't match an outstanding request diff -r 4495403470cb -r e344b00f2cc9 net/dns.lua --- a/net/dns.lua Fri Oct 01 16:44:49 2010 +0200 +++ b/net/dns.lua Tue Oct 05 18:55:17 2010 +0100 @@ -798,11 +798,11 @@ 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');