Software /
code /
prosody
Changeset
4918:98a8db95de8c
stanza_router: Don't bounce type=error stanzas
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 27 May 2012 04:01:34 +0200 |
parents | 4917:d1dca1d12d53 |
children | 4919:6cbc35cdefaf |
files | core/stanza_router.lua |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/core/stanza_router.lua Sun May 27 01:22:02 2012 +0200 +++ b/core/stanza_router.lua Sun May 27 04:01:34 2012 +0200 @@ -199,6 +199,8 @@ local routed = host_session.events.fire_event("route/remote", { origin = origin, stanza = stanza, from_host = from_host, to_host = host }); stanza.attr.xmlns = xmlns; -- reset if not routed then + log("debug", "... no, just kidding."); + if stanza.attr.type == "error" then return end core_route_stanza(host_session, st.error_reply(stanza, "cancel", "not-allowed", "Communication with remote domains is not enabled")); end end