diff options
author | Kim Alvefur <zash@zash.se> | 2020-01-26 14:35:35 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2020-01-26 14:35:35 +0100 |
commit | 6137789b45618e04d261ef8fba40ad69ebda874f (patch) | |
tree | a270afc1368ea80b3f8f11e3153c59a7204efc0a /net/resolvers/basic.lua | |
parent | 165901fe8023f03c5e4b8083a6f588c306775d78 (diff) | |
download | prosody-6137789b45618e04d261ef8fba40ad69ebda874f.tar.gz prosody-6137789b45618e04d261ef8fba40ad69ebda874f.zip |
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.
Diffstat (limited to 'net/resolvers/basic.lua')
-rw-r--r-- | net/resolvers/basic.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/resolvers/basic.lua b/net/resolvers/basic.lua index 438448b2..75c23a58 100644 --- a/net/resolvers/basic.lua +++ b/net/resolvers/basic.lua @@ -52,6 +52,8 @@ function methods:next(cb) 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 @@ function methods:next(cb) end ready(); end, self.hostname, "AAAA", "IN"); + else + ready(); end end |