net.resolvers.basic: Indicate to callback if we have more targets available
authorMatthew Wild <mwild1@gmail.com>
Fri, 18 Mar 2022 16:13:09 +0000
changeset 12414 596625eed326
parent 12413 9f0baf15e792
child 12415 e132a4279914
net.resolvers.basic: Indicate to callback if we have more targets available
net/resolvers/basic.lua
--- a/net/resolvers/basic.lua	Fri Mar 18 16:10:26 2022 +0000
+++ b/net/resolvers/basic.lua	Fri Mar 18 16:13:09 2022 +0000
@@ -64,7 +64,7 @@
 			return;
 		end
 		local next_target = table.remove(self.targets, 1);
-		cb(next_target[1], next_target[2], next_target[3], next_target[4]);
+		cb(next_target[1], next_target[2], next_target[3], next_target[4], not not self.targets[1]);
 		return;
 	end