Comparison

net/resolvers/basic.lua @ 12413:e155f4509954

net.resolvers.basic: Fix incorrect field name (thanks CI)
author Matthew Wild <mwild1@gmail.com>
date Fri, 18 Mar 2022 20:14:20 +0000
parent 12410:596625eed326
child 12601:72f7bb3f30d3
comparison
equal deleted inserted replaced
12412:18a3a6218100 12413:e155f4509954
78 local dns_resolver = adns.resolver(); 78 local dns_resolver = adns.resolver();
79 79
80 local dns_lookups = { 80 local dns_lookups = {
81 ipv4 = do_dns_lookup(self, dns_resolver, "A", self.hostname); 81 ipv4 = do_dns_lookup(self, dns_resolver, "A", self.hostname);
82 ipv6 = do_dns_lookup(self, dns_resolver, "AAAA", self.hostname); 82 ipv6 = do_dns_lookup(self, dns_resolver, "AAAA", self.hostname);
83 tlsa = do_dns_lookup(self, dns_resolver, "TLSA", ("_%d._%s.%s"):format(self.port, self.conntype, self.hostname)); 83 tlsa = do_dns_lookup(self, dns_resolver, "TLSA", ("_%d._%s.%s"):format(self.port, self.conn_type, self.hostname));
84 }; 84 };
85 85
86 promise.all_settled(dns_lookups):next(function (dns_results) 86 promise.all_settled(dns_lookups):next(function (dns_results)
87 -- Combine targets, assign to self.targets, self:next(cb) 87 -- Combine targets, assign to self.targets, self:next(cb)
88 local have_ipv4 = dns_results.ipv4.status == "fulfilled"; 88 local have_ipv4 = dns_results.ipv4.status == "fulfilled";