Mercurial > prosody-hg
diff net/unbound.lua @ 14224:36aac3343563
net.unbound: Respect use_dnssec=false in case of default TA in lua-event
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Thu, 11 Jun 2026 22:30:27 +0200 |
| parents | 37612a03220d |
| children | ce31fdde0ad1 |
line wrap: on
line diff
--- a/net/unbound.lua Thu Jun 11 22:19:08 2026 +0200 +++ b/net/unbound.lua Thu Jun 11 22:30:27 2026 +0200 @@ -48,7 +48,10 @@ conf[option] = default; end end - if use_dnssec ~= false then + if use_dnssec == false then + conf["trustfile"] = nil; + conf["trusted"] = nil; + elseif use_dnssec ~= false then if conf["trustfile"] == nil and conf["trusted"] == nil then conf["trustfile"] = trustfile; end
