Changeset

9449:94033a2529b9

mod_s2s: Indicate origin of s2s error
author Kim Alvefur <zash@zash.se>
date Mon, 08 Oct 2018 15:03:26 +0200
parents 9448:352e8b75c1ae
children 9450:b890ceb1c24f
files plugins/mod_s2s/mod_s2s.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_s2s/mod_s2s.lua	Sun Oct 07 20:58:51 2018 +0200
+++ b/plugins/mod_s2s/mod_s2s.lua	Mon Oct 08 15:03:26 2018 +0200
@@ -81,7 +81,7 @@
 		local reply = data[2];
 		if reply and not(reply.attr.xmlns) and bouncy_stanzas[reply.name] then
 			reply.attr.type = "error";
-			reply:tag("error", {type = "cancel"})
+			reply:tag("error", {type = "cancel", by = session.from_host})
 				:tag("remote-server-not-found", {xmlns = "urn:ietf:params:xml:ns:xmpp-stanzas"}):up();
 			if reason then
 				reply:tag("text", {xmlns = "urn:ietf:params:xml:ns:xmpp-stanzas"})