diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-10-05 18:55:17 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-10-05 18:55:17 +0100 |
commit | 0f6754746c9174992bd59fc3e167d0a39f9526ee (patch) | |
tree | a57313d8443f9247f3ad0e1a1e6e41e88aa8c6a8 /net | |
parent | d78d543c9e514095409a356038da404803bfd37e (diff) | |
download | prosody-0f6754746c9174992bd59fc3e167d0a39f9526ee.tar.gz prosody-0f6754746c9174992bd59fc3e167d0a39f9526ee.zip |
net.dns: Add 'force' parameter to resolver:feed() to force decoding a packet even if it doesn't match an outstanding request
Diffstat (limited to 'net')
-rw-r--r-- | net/dns.lua | 4 |
1 files 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'); |