Mercurial > prosody-modules
comparison mod_proxy65_whitelist/mod_proxy65_whitelist.lua @ 1512:cf572280b4dc
mod_proxy65_whitelist: Fix variable name
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Tue, 23 Sep 2014 21:30:47 +0200 |
| parents | ef613b40591a |
| children | 4ef0a1a499fa |
comparison
equal
deleted
inserted
replaced
| 1511:ef613b40591a | 1512:cf572280b4dc |
|---|---|
| 1 local allowed_streamhosts = module:get_option_set("allowed_streamhosts", {}); -- eg proxy.eu.jabber.org | 1 local allowed_streamhosts = module:get_option_set("allowed_streamhosts", {}); -- eg proxy.eu.jabber.org |
| 2 | 2 |
| 3 if module:get_option_boolean("allow_local_streamhosts", true) then | 3 if module:get_option_boolean("allow_local_streamhosts", true) then |
| 4 for hostname, host in pairs(hosts) do | 4 for hostname, host in pairs(hosts) do |
| 5 if streamhost.modules.proxy65 then | 5 if host.modules.proxy65 then |
| 6 allowed_streamhosts:include(hostname); | 6 allowed_streamhosts:include(hostname); |
| 7 end | 7 end |
| 8 end | 8 end |
| 9 end | 9 end |
| 10 | 10 |
