Changeset

12410:596625eed326

net.resolvers.basic: Indicate to callback if we have more targets available
author Matthew Wild <mwild1@gmail.com>
date Fri, 18 Mar 2022 16:13:09 +0000
parents 12409:9f0baf15e792
children 12411:e132a4279914
files net/resolvers/basic.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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