Mercurial > prosody-hg
comparison plugins/mod_proxy65.lua @ 10411:db2a06b9ff98
Merge 0.11->trunk
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sat, 16 Nov 2019 16:52:31 +0100 |
| parents | 0f335815244f |
| children | c079103c9172 |
comparison
equal
deleted
inserted
replaced
| 10410:659b577f280c | 10411:db2a06b9ff98 |
|---|---|
| 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 {}); |
