comparison 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
comparison
equal deleted inserted replaced
14222:ad7f7b5f4792 14223:37612a03220d
41 for option, default in pairs(builtin_defaults) do 41 for option, default in pairs(builtin_defaults) do
42 if conf[option] == nil then 42 if conf[option] == nil then
43 conf[option] = default; 43 conf[option] = default;
44 end 44 end
45 end 45 end
46 for option, default in pairs(libunbound.config) do
47 if conf[option] == nil then
48 conf[option] = default;
49 end
50 end
46 if use_dnssec ~= false then 51 if use_dnssec ~= false then
47 if conf["trustfile"] == nil and conf["trusted"] == nil then 52 if conf["trustfile"] == nil and conf["trusted"] == nil then
48 conf["trustfile"] = trustfile; 53 conf["trustfile"] = trustfile;
49 end
50 end
51 for option, default in pairs(libunbound.config) do
52 if conf[option] == nil then
53 conf[option] = default;
54 end 54 end
55 end 55 end
56 return conf; 56 return conf;
57 end 57 end
58 58