Comparison

net/resolvers/service.lua @ 11710:26a8cc9d9eb7

net.resolvers.service: Only do DANE with secure SRV records If this seems backwards, that' because it is but the API isn't really designed to easily pass along details from each resolution step onto the next.
author Kim Alvefur <zash@zash.se>
date Sun, 18 Jul 2021 23:25:45 +0200
parent 10970:4603697aee50
child 11901:26406ce35e20
comparison
equal deleted inserted replaced
11709:5810166f35d5 11710:26a8cc9d9eb7
48 if not answer and not err then 48 if not answer and not err then
49 -- net.adns returns nil if there are zero records or nxdomain 49 -- net.adns returns nil if there are zero records or nxdomain
50 answer = {}; 50 answer = {};
51 end 51 end
52 if answer then 52 if answer then
53 if self.extra and not answer.secure then
54 self.extra.use_dane = false;
55 end
56
53 if #answer == 0 then 57 if #answer == 0 then
54 if self.extra and self.extra.default_port then 58 if self.extra and self.extra.default_port then
55 table.insert(targets, { self.hostname, self.extra.default_port, self.conn_type, self.extra }); 59 table.insert(targets, { self.hostname, self.extra.default_port, self.conn_type, self.extra });
56 end 60 end
57 ready(); 61 ready();