plugins/mod_s2s.lua
changeset 11708 0a8671f32424
parent 11688 8b0baf3003fb
child 11709 7132acfd287e
--- a/plugins/mod_s2s.lua	Sun Jul 18 08:53:37 2021 +0200
+++ b/plugins/mod_s2s.lua	Sun Jul 18 09:08:04 2021 +0200
@@ -614,7 +614,7 @@
 		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;