aboutsummaryrefslogtreecommitdiffstats
path: root/net/dns.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-03-07 00:13:56 +0100
committerKim Alvefur <zash@zash.se>2022-03-07 00:13:56 +0100
commit43351d2b54f7d8451a0e1ada7a72514c1ae1e396 (patch)
tree69239d940028f6a8a29b1f6b0524d932d1553c7b /net/dns.lua
parentece896d2532cc91ea95c0194e3db439c364235eb (diff)
downloadprosody-43351d2b54f7d8451a0e1ada7a72514c1ae1e396.tar.gz
prosody-43351d2b54f7d8451a0e1ada7a72514c1ae1e396.zip
Spelling: Fix various spelling mistakes (thanks timeless)
Words, sometimes I wonder how they even work Maybe I missed something.
Diffstat (limited to 'net/dns.lua')
-rw-r--r--net/dns.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/net/dns.lua b/net/dns.lua
index 17119152..a9846e86 100644
--- a/net/dns.lua
+++ b/net/dns.lua
@@ -344,7 +344,7 @@ local function encodeHeader(o) -- - - - - - - - - - - - - - - encodeHeader
-- 4 not implemented
-- 5 refused
-- 6-15 reserved
- o.z = o.z or 0; -- 3b 0 resvered
+ o.z = o.z or 0; -- 3b 0 reserved
o.ra = o.ra or 0; -- 1b 1 recursion available
o.qdcount = o.qdcount or 1; -- 16b number of question RRs
@@ -885,7 +885,7 @@ function resolver:query(qname, qtype, qclass) -- - - - - - - - - - -- query
if co then
set(self.wanted, qclass, qtype, qname, co, true);
end
-
+
if have_timer and self.timeout then
local num_servers = #self.server;
local i = 1;
@@ -941,7 +941,7 @@ function resolver:servfail(sock, err)
sock:send(o.packet);
end
end
- end
+ end
if not retried then
log("debug", 'tried all servers, giving up');
self:cancel(o.qclass, o.qtype, o.qname);
@@ -994,7 +994,7 @@ function resolver:receive(rset) -- - - - - - - - - - - - - - - - - receive
-- retire the query
local queries = self.active[response.header.id];
queries[response.question.raw] = nil;
-
+
if not next(queries) then self.active[response.header.id] = nil; end
if not next(self.active) then self:closeall(); end
@@ -1008,7 +1008,7 @@ function resolver:receive(rset) -- - - - - - - - - - - - - - - - - receive
set(self.wanted, q.class, q.type, q.name, nil);
end
end
-
+
end
end
end