# HG changeset patch # User Kim Alvefur # Date 1781209148 -7200 # Node ID 37612a03220d970ac96f04e96527dad869bb6fcd # Parent ad7f7b5f47920484b429c0730aa636e1410e0997 net.unbound: Inherit trust anchors from luaunbound defaults If luaunbound ships with trust anchors set then that's probably good defaults. diff -r ad7f7b5f4792 -r 37612a03220d net/unbound.lua --- 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