comparison mod_firewall/actions.lib.lua @ 2106:f2ee508315e1

mod_firewall: JUMP_CHAIN: Fix implementation to match docs (i.e. continue processing current chain if stanza not handled)
author Matthew Wild <mwild1@gmail.com>
date Thu, 17 Mar 2016 11:26:20 +0000
parents a1e9ca4cb181
children f445f43b9ba1
comparison
equal deleted inserted replaced
2105:f2d5aa789646 2106:f2ee508315e1
178 function action_handlers.JUMP_EVENT(name) 178 function action_handlers.JUMP_EVENT(name)
179 return ("do return fire_event(%q, event); end"):format(name); 179 return ("do return fire_event(%q, event); end"):format(name);
180 end 180 end
181 181
182 function action_handlers.JUMP_CHAIN(name) 182 function action_handlers.JUMP_CHAIN(name)
183 return ("do return fire_event(%q, event); end"):format("firewall/chains/"..name); 183 return ("if fire_event(%q, event) then return true; end"):format("firewall/chains/"..name);
184 end 184 end
185 185
186 return action_handlers; 186 return action_handlers;