Mercurial > prosody-modules
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 6537:9bc83fba89ac | 6538:de1f17ed4dac |
|---|---|
| 275 core_post_stanza(session, newstanza); | 275 core_post_stanza(session, newstanza); |
| 276 ]]; | 276 ]]; |
| 277 return code:format(where, reason, text), { "core_post_stanza", "current_host", "st", "new_short_id" }; | 277 return code:format(where, reason, text), { "core_post_stanza", "current_host", "st", "new_short_id" }; |
| 278 end | 278 end |
| 279 | 279 |
| 280 function action_handlers.TAG_TRACE(tag_name) | |
| 281 return ("if trace_record then trace_record.tag, event.firewall_trace_tag = %q, %q end"):format(tag_name, tag_name), { "trace" }; | |
| 282 end | |
| 283 | |
| 280 return action_handlers; | 284 return action_handlers; |
