Software /
code /
prosody-modules
Diff
mod_firewall/mod_firewall.lua @ 960:d773a51af9b1
mod_firewall: Add actions EVENT (fire an event), JUMP EVENT (transfer control to the handlers of an event), JUMP CHAIN (transfer control to another mod_firewall chain)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 05 Apr 2013 18:08:16 +0100 |
parent | 956:33d6642f4db7 |
child | 965:d4e24fb289c0 |
line wrap: on
line diff
--- a/mod_firewall/mod_firewall.lua Fri Apr 05 18:06:32 2013 +0100 +++ b/mod_firewall/mod_firewall.lua Fri Apr 05 18:08:16 2013 +0100 @@ -241,9 +241,7 @@ table.insert(code, rule_code); end - assert(chains[chain_name].type == "event", "Only event chains supported at the moment") - - local code_string = [[return function (zones, log) + local code_string = [[return function (zones, fire_event, log) ]]..table.concat(code.global_header, "\n")..[[ local db = require 'util.debug' return function (event)