aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/mod_s2s.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_s2s.lua b/plugins/mod_s2s.lua
index d9946fae..71dcd358 100644
--- a/plugins/mod_s2s.lua
+++ b/plugins/mod_s2s.lua
@@ -623,6 +623,7 @@ local function session_close(session, reason, remote_reason, bounce_reason)
end
local this_host = session.direction == "outgoing" and session.from_host or session.to_host
+ if not hosts[this_host] then this_host = ":unknown"; end
if reason then -- nil == no err, initiated by us, false == initiated by remote
local stream_error;