# HG changeset patch
# User Matthew Wild <mwild1@gmail.com>
# Date 1254670457 -3600
# Node ID 562635baad36b86c8b244f0f2c393366edf44e7b
# Parent  e3c790060c032bec48d85043212e6b69de065a25
s2smanager: Give outgoing sessions a host field (the local one)

diff -r e3c790060c03 -r 562635baad36 core/s2smanager.lua
--- a/core/s2smanager.lua	Sun Oct 04 16:31:27 2009 +0100
+++ b/core/s2smanager.lua	Sun Oct 04 16:34:17 2009 +0100
@@ -145,7 +145,9 @@
 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;