aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_s2s.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_s2s.lua b/plugins/mod_s2s.lua
index 9aaecd6e..d4b0ca60 100644
--- a/plugins/mod_s2s.lua
+++ b/plugins/mod_s2s.lua
@@ -614,7 +614,7 @@ local function session_close(session, reason, remote_reason, bounce_reason)
end
end
- local this_host = session.direction == "incoming" and session.to_host or session.from_host
+ local this_host = session.direction == "outgoing" and session.from_host or session.to_host
if reason then -- nil == no err, initiated by us, false == initiated by remote
local stream_error;