Mercurial > prosody-modules
diff mod_firewall/mod_firewall.lua @ 2894:165d2877eeac
mod_firewall: Add experimental user-centric persistent marks behind a feature flag
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 24 Feb 2018 21:40:56 +0100 |
parents | 22e11645a895 |
children | b0d92332b87f |
line wrap: on
line diff
--- a/mod_firewall/mod_firewall.lua Sat Feb 24 19:38:10 2018 +0100 +++ b/mod_firewall/mod_firewall.lua Sat Feb 24 21:40:56 2018 +0100 @@ -303,6 +303,10 @@ local condition_handlers = module:require("conditions"); local action_handlers = module:require("actions"); +if module:get_option_boolean("firewall_experimental_user_marks", false) then + module:require"marks"; +end + local function new_rule(ruleset, chain) assert(chain, "no chain specified"); local rule = { conditions = {}, actions = {}, deps = {} };