]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
modules/policy: Overwrite rdata by rpz file
authorLukáš Ježek <lukas.jezek@nic.cz>
Mon, 30 Mar 2020 10:02:05 +0000 (12:02 +0200)
committerPetr Špaček <petr.spacek@nic.cz>
Tue, 14 Apr 2020 14:55:56 +0000 (16:55 +0200)
modules/policy/policy.lua

index c04d4f788c6e75224a54af0d02ca66efaf8329f0..d20891374606f975920f6d0ee6781a77bf31613e 100644 (file)
@@ -393,7 +393,7 @@ local function rpz_parse(action, path)
                rules[name] = action_map[name_action]
                -- Warn when NYI
                if #name > 1 and not action_map[name_action] then
-                       log('[poli] RPZ %s:%d: unsupported policy action', path, tonumber(parser.line_counter))
+                       rules[name] = policy.ANSWER(parser.r_type, name_action, parser.r_ttl)
                end
        end
        collectgarbage()