# HG changeset patch # User Kim Alvefur # Date 1580045735 -3600 # Node ID 26fb44b61a1736658de3b93eda1d3535a6ec804f # Parent 3bfb20be844cf314f13c1080db89fb6230f5ac2f 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. diff -r 3bfb20be844c -r 26fb44b61a17 net/resolvers/basic.lua --- 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