From 6050cd0da5a2463f2d19466adc5f87357c65a0dd Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Fri, 18 Mar 2022 16:13:09 +0000 Subject: net.resolvers.basic: Indicate to callback if we have more targets available --- net/resolvers/basic.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'net/resolvers') diff --git a/net/resolvers/basic.lua b/net/resolvers/basic.lua index 667015a0..9eb7091c 100644 --- a/net/resolvers/basic.lua +++ b/net/resolvers/basic.lua @@ -64,7 +64,7 @@ function methods:next(cb) 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 -- cgit v1.2.3