Signed-off-by: Daniel Weismüller <daniel.weismueller@ipfire.org>
if status == "on" then
local path = string.format("/var/lib/knot-resolver/zones/%s.zone", name)
+ -- Fix buggy Perl CSV generator
+ if not enabled_zones then
+ enabled_zones = ""
+ end
+
+ if not custom_acl then
+ custom_acl = ""
+ end
+
-- Ensure the zone exists
if io.open(path) then
-- Make the tag
end
-- Load it globally if no ACLs have been defined
- if not enabled_zones and not custom_acl then
+ if enabled_zones == "" and custom_acl == "" then
add_tag(views, "0.0.0.0/0", tag)
end
end