Diff

net/resolvers/basic.lua @ 10626:26fb44b61a17

net.resolvers.basic: Fix continuing if IPv6 or Legacy IP is disabled The code expects ready() to be called twice, but with IPv4 or v6 disabled it would only be called once.
author Kim Alvefur <zash@zash.se>
date Sun, 26 Jan 2020 14:35:35 +0100
parent 10624:0725b7b8dc14
child 10945:2edb72ef312a
line wrap: on
line diff
--- a/net/resolvers/basic.lua	Sat Jan 25 14:38:42 2020 +0000
+++ b/net/resolvers/basic.lua	Sun Jan 26 14:35:35 2020 +0100
@@ -52,6 +52,8 @@
 			end
 			ready();
 		end, self.hostname, "A", "IN");
+	else
+		ready();
 	end
 
 	if not self.extra or self.extra.use_ipv6 ~= false then
@@ -63,6 +65,8 @@
 			end
 			ready();
 		end, self.hostname, "AAAA", "IN");
+	else
+		ready();
 	end
 end