Software /
code /
prosody-modules
Changeset
5890:1d1eadff331d
mod_firewall: Support util.id.* as dependencies
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 12 Mar 2024 14:31:21 +0000 |
parents | 5889:bfc35ae9edcb |
children | 5891:3f5644aa5c32 |
files | mod_firewall/mod_firewall.lua |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_firewall/mod_firewall.lua Tue Mar 12 14:27:43 2024 +0000 +++ b/mod_firewall/mod_firewall.lua Tue Mar 12 14:31:21 2024 +0000 @@ -306,6 +306,15 @@ "iplib" } }; + new_short_id = { + global_code = [[local new_short_id = require "util.id".short;]]; + }; + new_medium_id = { + global_code = [[local new_medium_id = require "util.id".medium;]]; + }; + new_long_id = { + global_code = [[local new_long_id = require "util.id".long;]]; + }; }; local function include_dep(dependency, code)