aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/unbound.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/net/unbound.lua b/net/unbound.lua
index 4a6f0241..f11189fe 100644
--- a/net/unbound.lua
+++ b/net/unbound.lua
@@ -25,13 +25,22 @@ local dns_utils = require"util.dns";
local classes, types, errors = dns_utils.classes, dns_utils.types, dns_utils.errors;
local parsers = dns_utils.parsers;
+local builtin_defaults = { hoststxt = false }
+
local function add_defaults(conf)
if conf then
+ for option, default in pairs(builtin_defaults) do
+ if conf[option] == nil then
+ conf[option] = default;
+ end
+ end
for option, default in pairs(libunbound.config) do
if conf[option] == nil then
conf[option] = default;
end
end
+ else
+ return builtin_defaults;
end
return conf;
end