Comparison

net/resolvers/basic.lua @ 11420:f768db80aee0

net.resolvers.basic: Don't enable DANE with zero TLSA records Turns out it doesn't work with zero.
author Kim Alvefur <zash@zash.se>
date Wed, 03 Mar 2021 18:42:54 +0100
parent 11414:5a71f14ab77c
child 11421:926d53af9a7a
comparison
equal deleted inserted replaced
11419:2c26dfc1977f 11420:f768db80aee0
35 local function ready() 35 local function ready()
36 n = n - 1; 36 n = n - 1;
37 if n > 0 then return; end 37 if n > 0 then return; end
38 self.targets = targets; 38 self.targets = targets;
39 if self.extra and self.extra.use_dane then 39 if self.extra and self.extra.use_dane then
40 if secure then 40 if secure and tlsa[1] then
41 self.extra.tlsa = tlsa; 41 self.extra.tlsa = tlsa;
42 self.extra.dane_hostname = self.hostname; 42 self.extra.dane_hostname = self.hostname;
43 else 43 else
44 self.extra.tlsa = nil; 44 self.extra.tlsa = nil;
45 self.extra.dane_hostname = nil; 45 self.extra.dane_hostname = nil;