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 | 6d67164438abe237f394d88fbd4d38204aec78e8 (patch) | |
tree | a270afc1368ea80b3f8f11e3153c59a7204efc0a /net/resolvers/basic.lua | |
parent | 3e689c6c2d594a79c44fc2bc25ed13c3899237dc (diff) | |
download | prosody-6d67164438abe237f394d88fbd4d38204aec78e8.tar.gz prosody-6d67164438abe237f394d88fbd4d38204aec78e8.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 |