diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-05-05 15:32:16 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-05-05 15:32:16 +0100 |
commit | 5492f0aebdf5cb5657d380d60207a5d2bcae506d (patch) | |
tree | acdd31e3e920018b0a9d0d109b960a33aa875ae5 | |
parent | f0ff564c3670137f4973abef7efe2d848e0d8a4c (diff) | |
download | prosody-5492f0aebdf5cb5657d380d60207a5d2bcae506d.tar.gz prosody-5492f0aebdf5cb5657d380d60207a5d2bcae506d.zip |
mod_proxy65: Return service-unavailable error when receiving an iq we didn't understand
-rw-r--r-- | plugins/mod_proxy65.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/mod_proxy65.lua b/plugins/mod_proxy65.lua index ed279ed3..3a543d8f 100644 --- a/plugins/mod_proxy65.lua +++ b/plugins/mod_proxy65.lua @@ -236,6 +236,9 @@ function handle_to_domain(origin, stanza) 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); |