Software /
code /
prosody
Changeset
10626:26fb44b61a17
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.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 26 Jan 2020 14:35:35 +0100 |
parents | 10625:3bfb20be844c |
children | 10627:88be11e9f9b9 |
files | net/resolvers/basic.lua |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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