Mercurial > prosody-hg
diff net/unbound.lua @ 14223:37612a03220d
net.unbound: Inherit trust anchors from luaunbound defaults
If luaunbound ships with trust anchors set then that's probably good
defaults.
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Thu, 11 Jun 2026 22:19:08 +0200 |
| parents | 2ec517d8d43e |
| children | 36aac3343563 |
line wrap: on
line diff
--- a/net/unbound.lua Fri Jun 12 13:12:16 2026 +0100 +++ b/net/unbound.lua Thu Jun 11 22:19:08 2026 +0200 @@ -43,16 +43,16 @@ conf[option] = default; end end + for option, default in pairs(libunbound.config) do + if conf[option] == nil then + conf[option] = default; + end + end if use_dnssec ~= false then if conf["trustfile"] == nil and conf["trusted"] == nil then conf["trustfile"] = trustfile; end end - for option, default in pairs(libunbound.config) do - if conf[option] == nil then - conf[option] = default; - end - end return conf; end
