Commit 46b582dc authored by Vladimír Čunát's avatar Vladimír Čunát

prefill module: allow a different module-loading style

Otherwise plain `modules = { 'prefill' }` will error out,
which is surprising wrt. to style used/allowed by other modules.
parent ee36e758
Pipeline #52682 failed with stages
in 46 minutes and 19 seconds
......@@ -6,6 +6,7 @@ Bugfixes
- rebinding module: fix handling some requests, respect ALLOW_LOCAL flag
- fix incorrect SERVFAIL on cached bogus answer for +cd request (!860)
(regression since 4.1.0 release, in less common cases)
- prefill module: allow a different module-loading style (#506)
Knot Resolver 4.2.0 (2019-08-05)
......
......@@ -181,8 +181,9 @@ local function config_zone(zone_cfg)
end
function prefill.config(config)
if config == nil then return end -- e.g. just modules = { 'prefill' }
local root_configured = false
if not config or type(config) ~= 'table' then
if type(config) ~= 'table' then
error('[prefill] configuration must be in table '
.. '{owner name = {per-zone config}}')
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment