aboutsummaryrefslogtreecommitdiffstats
path: root/net/dns.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-07-08 22:01:10 +0200
committerKim Alvefur <zash@zash.se>2016-07-08 22:01:10 +0200
commit7b3f79b2ec8c94a585354d442bc9680cea62c5a3 (patch)
treee5339d0c057334591e52af0777588890d51081a5 /net/dns.lua
parent8c0ca748b53ca43d707d86590f666bda5e908a81 (diff)
parent9741bdfb3887695e7021d793ce6a96eaf595ed2b (diff)
downloadprosody-7b3f79b2ec8c94a585354d442bc9680cea62c5a3.tar.gz
prosody-7b3f79b2ec8c94a585354d442bc9680cea62c5a3.zip
Merge 0.10->trunk
Diffstat (limited to 'net/dns.lua')
-rw-r--r--net/dns.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/dns.lua b/net/dns.lua
index 689020a4..4a35fc1b 100644
--- a/net/dns.lua
+++ b/net/dns.lua
@@ -190,7 +190,7 @@ end
local rrs_metatable = {}; -- - - - - - - - - - - - - - - - - - rrs_metatable
function rrs_metatable.__tostring(rrs)
local t = {};
- for i,rr in ipairs(rrs) do
+ for _, rr in ipairs(rrs) do
append(t, tostring(rr)..'\n');
end
return table.concat(t);
@@ -841,7 +841,7 @@ function resolver:receive(rset) -- - - - - - - - - - - - - - - - - receive
rset = rset or self.socket;
local response;
- for i,sock in pairs(rset) do
+ for _, sock in pairs(rset) do
if self.socketset[sock] then
local packet = sock:receive();
@@ -852,7 +852,7 @@ function resolver:receive(rset) -- - - - - - - - - - - - - - - - - receive
--print('received response');
--self.print(response);
- for j,rr in pairs(response.answer) do
+ for _, rr in pairs(response.answer) do
if rr.name:sub(-#response.question[1].name, -1) == response.question[1].name then
self:remember(rr, response.question[1].type)
end
@@ -894,7 +894,7 @@ function resolver:feed(sock, packet, force)
--print('received response');
--self.print(response);
- for j,rr in pairs(response.answer) do
+ for _, rr in pairs(response.answer) do
self:remember(rr, response.question[1].type);
end