mod_proxy65: Return service-unavailable error when receiving an iq we didn't understand
--- 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);