comparison mod_proxy65_whitelist/mod_proxy65_whitelist.lua @ 1513:4ef0a1a499fa

mod_proxy65_whitelist: Fix util.set use (thanks deoren)
author Kim Alvefur <zash@zash.se>
date Tue, 23 Sep 2014 22:41:53 +0200
parents cf572280b4dc
children 48686b399a88
comparison
equal deleted inserted replaced
1512:cf572280b4dc 1513:4ef0a1a499fa
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 host.modules.proxy65 then 5 if host.modules.proxy65 then
6 allowed_streamhosts:include(hostname); 6 allowed_streamhosts:add(hostname);
7 end 7 end
8 end 8 end
9 end 9 end
10 10
11 local function filter_streamhosts(tag) 11 local function filter_streamhosts(tag)