s2smanager: Give outgoing sessions a host field (the local one)

Sun, 04 Oct 2009 16:34:17 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Sun, 04 Oct 2009 16:34:17 +0100
changeset 1888
562635baad36
parent 1887
e3c790060c03
child 1889
e875833ae08e

s2smanager: Give outgoing sessions a host field (the local one)

core/s2smanager.lua file | annotate | diff | comparison | revisions
--- 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;

mercurial