aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-10-08 15:03:26 +0200
committerKim Alvefur <zash@zash.se>2018-10-08 15:03:26 +0200
commit59cd2f787e36f9c260311ee833cc91e67c1d431c (patch)
treece60dabed8d26d084bad204263dbd06283bd7d5d /plugins
parent34be9eaebf2ff39e644a13ece3324f6f84275788 (diff)
downloadprosody-59cd2f787e36f9c260311ee833cc91e67c1d431c.tar.gz
prosody-59cd2f787e36f9c260311ee833cc91e67c1d431c.zip
mod_s2s: Indicate origin of s2s error
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_s2s/mod_s2s.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_s2s/mod_s2s.lua b/plugins/mod_s2s/mod_s2s.lua
index 5f590338..aae37b7f 100644
--- a/plugins/mod_s2s/mod_s2s.lua
+++ b/plugins/mod_s2s/mod_s2s.lua
@@ -81,7 +81,7 @@ local function bounce_sendq(session, reason)
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"})