changeset 2548:ce08a57e516b

mod_firewall: Add 'current_host' variable/dependency
author Matthew Wild <mwild1@gmail.com>
date Thu, 23 Feb 2017 13:58:30 +0000
parents eb4f45bd7fef
children 2ff588094938
files mod_firewall/mod_firewall.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mod_firewall/mod_firewall.lua	Thu Feb 23 13:58:13 2017 +0000
+++ b/mod_firewall/mod_firewall.lua	Thu Feb 23 13:58:30 2017 +0000
@@ -151,6 +151,7 @@
 	st = { global_code = [[local st = require "util.stanza";]]};
 	it = { global_code = [[local it = require "util.iterators";]]};
 	it_count = { global_code = [[local it_count = it.count;]], depends = { "it" } };
+	current_host = { global_code = [[local current_host = module.host;]] };
 	jid_split = {
 		global_code = [[local jid_split = require "util.jid".split;]];
 	};