From 4ad88a506eeb92871642c52c7e8dc7fa9c74f0d7 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sun, 4 Oct 2009 16:34:17 +0100 Subject: s2smanager: Give outgoing sessions a host field (the local one) --- core/s2smanager.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'core') 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; -- cgit v1.2.3