# HG changeset patch # User Kim Alvefur # Date 1614793374 -3600 # Node ID f768db80aee0b7de7aad22cfa2e9b09270fc9a68 # Parent 2c26dfc1977f542ea4efd253987df2cbaa50805c net.resolvers.basic: Don't enable DANE with zero TLSA records Turns out it doesn't work with zero. diff -r 2c26dfc1977f -r f768db80aee0 net/resolvers/basic.lua --- a/net/resolvers/basic.lua Wed Mar 03 13:34:00 2021 +0100 +++ b/net/resolvers/basic.lua Wed Mar 03 18:42:54 2021 +0100 @@ -37,7 +37,7 @@ if n > 0 then return; end self.targets = targets; if self.extra and self.extra.use_dane then - if secure then + if secure and tlsa[1] then self.extra.tlsa = tlsa; self.extra.dane_hostname = self.hostname; else