mirror of
https://github.com/bjc/prosody.git
synced 2025-04-05 06:07:37 +03:00
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.
This commit is contained in:
parent
165901fe80
commit
6137789b45
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue