Diff

net/dns.lua @ 12387:05c250fa335a

Spelling: Fix various spelling mistakes (thanks timeless) Words, sometimes I wonder how they even work Maybe I missed something.
author Kim Alvefur <zash@zash.se>
date Mon, 07 Mar 2022 00:13:56 +0100 (2022-03-06)
parent 10976:540f1bc5f082
child 12604:bd9e006a7a74
line wrap: on
line diff
--- a/net/dns.lua	Sun Mar 06 15:13:50 2022 +0100
+++ b/net/dns.lua	Mon Mar 07 00:13:56 2022 +0100
@@ -344,7 +344,7 @@
 				--	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 @@
 	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 @@
 							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 @@
 					-- 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 @@
 						set(self.wanted, q.class, q.type, q.name, nil);
 					end
 				end
-				
+
 			end
 		end
 	end