Mercurial > prosody-modules
comparison mod_firewall/mod_firewall.lua @ 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 |
comparison
equal
deleted
inserted
replaced
2547:eb4f45bd7fef | 2548:ce08a57e516b |
---|---|
149 | 149 |
150 local available_deps = { | 150 local available_deps = { |
151 st = { global_code = [[local st = require "util.stanza";]]}; | 151 st = { global_code = [[local st = require "util.stanza";]]}; |
152 it = { global_code = [[local it = require "util.iterators";]]}; | 152 it = { global_code = [[local it = require "util.iterators";]]}; |
153 it_count = { global_code = [[local it_count = it.count;]], depends = { "it" } }; | 153 it_count = { global_code = [[local it_count = it.count;]], depends = { "it" } }; |
154 current_host = { global_code = [[local current_host = module.host;]] }; | |
154 jid_split = { | 155 jid_split = { |
155 global_code = [[local jid_split = require "util.jid".split;]]; | 156 global_code = [[local jid_split = require "util.jid".split;]]; |
156 }; | 157 }; |
157 jid_bare = { | 158 jid_bare = { |
158 global_code = [[local jid_bare = require "util.jid".bare;]]; | 159 global_code = [[local jid_bare = require "util.jid".bare;]]; |