Mercurial > prosody-modules
diff mod_firewall/actions.lib.lua @ 6538:de1f17ed4dac
mod_firewall: Add support for tracing rule evaluation in real-time
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Mon, 11 May 2026 13:37:19 +0100 |
| parents | f61564e11d3b |
| children |
line wrap: on
line diff
--- a/mod_firewall/actions.lib.lua Mon May 11 13:18:45 2026 +0100 +++ b/mod_firewall/actions.lib.lua Mon May 11 13:37:19 2026 +0100 @@ -277,4 +277,8 @@ return code:format(where, reason, text), { "core_post_stanza", "current_host", "st", "new_short_id" }; end +function action_handlers.TAG_TRACE(tag_name) + return ("if trace_record then trace_record.tag, event.firewall_trace_tag = %q, %q end"):format(tag_name, tag_name), { "trace" }; +end + return action_handlers;
