Comparison

net/resolvers/basic.lua @ 11430:56a282ecdcf1

net.resolvers.basic: Fix completion condition when IPv6 is disabled Fixes mistake introduced in 5a71f14ab77c that made it so this ready() newer got called and thus it would be stuck waiting for it. Looks like the kind of thing that could have been introduced by a merge or rebase. Thanks MattJ
author Kim Alvefur <zash@zash.se>
date Mon, 15 Mar 2021 23:09:42 +0100
parent 11421:926d53af9a7a
child 11708:5ef729c355f3
comparison
equal deleted inserted replaced
11429:ef623d719894 11430:56a282ecdcf1
72 table.insert(targets, { self.conn_type.."6", record.aaaa, self.port, self.extra }); 72 table.insert(targets, { self.conn_type.."6", record.aaaa, self.port, self.extra });
73 end 73 end
74 end 74 end
75 ready(); 75 ready();
76 end, self.hostname, "AAAA", "IN"); 76 end, self.hostname, "AAAA", "IN");
77 else
78 ready();
77 end 79 end
78 80
79 if self.extra and self.extra.use_dane == true then 81 if self.extra and self.extra.use_dane == true then
80 dns_resolver:lookup(function (answer) 82 dns_resolver:lookup(function (answer)
81 if answer then 83 if answer then