Software /
code /
prosody
Changeset
3005:c49be80767ee
mod_proxy65: Return service-unavailable error when receiving an iq we didn't understand
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 05 May 2010 15:32:16 +0100 |
parents | 3004:c20b9fe1624b |
children | 3006:a3580f556c27 |
files | plugins/mod_proxy65.lua |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_proxy65.lua Wed May 05 15:31:18 2010 +0100 +++ b/plugins/mod_proxy65.lua Wed May 05 15:32:16 2010 +0100 @@ -236,6 +236,9 @@ elseif xmlns == "http://jabber.org/protocol/bytestreams" then origin.send(get_stream_host(origin, stanza)); return true; + else + origin.send(st.error_reply(stanza, "cancel", "service-unavailable")); + return true; end elseif stanza.name == "iq" and type == "set" then local reply, from, to, sid = set_activation(stanza);