- trust_anchors.add(): include these TAs in .summary() (!753)
- policy module: support '#' for separating port numbers, for consistency
- fix startup on macOS+BSD when </dev/null and cqueues installed
+- policy.RPZ: log problems from zone-file level of parser as well (#453)
Improvements
------------
-- Policy triggers @NYI@
}
local parser = require('zonefile').new()
- if not parser:open(path) then error(string.format('failed to parse "%s"', path)) end
- while parser:parse() do
+ local ok, errstr = parser:open(path)
+ if not ok then
+ error(string.format('failed to parse "%s": %s', path, errstr or "unknown error"))
+ end
+ while true do
+ ok, errstr = parser:parse()
+ if errstr then
+ log('[poli] RPZ %s:%d: %s', path, tonumber(parser.line_counter), errstr)
+ end
+ if not ok then break end
+
local name = ffi.string(parser.r_owner, parser.r_owner_length)
local name_action = ffi.string(parser.r_data, parser.r_data_length)
rules[name] = action_map[name_action]