comparison plugins/mod_proxy65.lua @ 10563:e8db377a2983

Merge 0.11->trunk
author Kim Alvefur <zash@zash.se>
date Tue, 24 Dec 2019 00:39:45 +0100
parents 0f335815244f
children c079103c9172
comparison
equal deleted inserted replaced
10562:670afc079f68 10563:e8db377a2983
115 local allow; 115 local allow;
116 for _, acl in ipairs(proxy_acl) do 116 for _, acl in ipairs(proxy_acl) do
117 if jid_compare(jid, acl) then allow = true; break; end 117 if jid_compare(jid, acl) then allow = true; break; end
118 end 118 end
119 if allow then break; end 119 if allow then break; end
120 module:log("warn", "Denying use of proxy for %s", tostring(stanza.attr.from)); 120 module:log("warn", "Denying use of proxy for %s", stanza.attr.from);
121 origin.send(st.error_reply(stanza, "auth", "forbidden")); 121 origin.send(st.error_reply(stanza, "auth", "forbidden"));
122 return true; 122 return true;
123 end 123 end
124 124
125 local proxy_port = next(portmanager.get_active_services():search("proxy65", nil)[1] or {}); 125 local proxy_port = next(portmanager.get_active_services():search("proxy65", nil)[1] or {});