Software / code / prosody
Changeset
1888:562635baad36
s2smanager: Give outgoing sessions a host field (the local one)
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Sun, 04 Oct 2009 16:34:17 +0100 |
| parents | 1887:e3c790060c03 |
| children | 1889:e875833ae08e |
| files | core/s2smanager.lua |
| diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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;