aboutsummaryrefslogtreecommitdiffstats
path: root/core/s2smanager.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-10-04 16:34:17 +0100
committerMatthew Wild <mwild1@gmail.com>2009-10-04 16:34:17 +0100
commit4ad88a506eeb92871642c52c7e8dc7fa9c74f0d7 (patch)
tree9613d503166f96ecec30cede819a0629049d154a /core/s2smanager.lua
parent23d63686ce63cf644e5353e37bdd4a46fe0290a7 (diff)
downloadprosody-4ad88a506eeb92871642c52c7e8dc7fa9c74f0d7.tar.gz
prosody-4ad88a506eeb92871642c52c7e8dc7fa9c74f0d7.zip
s2smanager: Give outgoing sessions a host field (the local one)
Diffstat (limited to 'core/s2smanager.lua')
-rw-r--r--core/s2smanager.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/s2smanager.lua b/core/s2smanager.lua
index daf2c871..6210faec 100644
--- a/core/s2smanager.lua
+++ b/core/s2smanager.lua
@@ -145,7 +145,9 @@ function new_incoming(conn)
end
function new_outgoing(from_host, to_host)
- local host_session = { to_host = to_host, from_host = from_host, notopen = true, type = "s2sout_unauthed", direction = "outgoing" };
+ local host_session = { to_host = to_host, from_host = from_host, host = from_host,
+ notopen = true, type = "s2sout_unauthed", direction = "outgoing" };
+
hosts[from_host].s2sout[to_host] = host_session;
local log;