Software /
code /
prosody
Comparison
core/s2smanager.lua @ 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 |
parent | 1836:f4c88dd32724 |
child | 1889:e875833ae08e |
comparison
equal
deleted
inserted
replaced
1887:e3c790060c03 | 1888:562635baad36 |
---|---|
143 end); | 143 end); |
144 return session; | 144 return session; |
145 end | 145 end |
146 | 146 |
147 function new_outgoing(from_host, to_host) | 147 function new_outgoing(from_host, to_host) |
148 local host_session = { to_host = to_host, from_host = from_host, notopen = true, type = "s2sout_unauthed", direction = "outgoing" }; | 148 local host_session = { to_host = to_host, from_host = from_host, host = from_host, |
149 notopen = true, type = "s2sout_unauthed", direction = "outgoing" }; | |
150 | |
149 hosts[from_host].s2sout[to_host] = host_session; | 151 hosts[from_host].s2sout[to_host] = host_session; |
150 | 152 |
151 local log; | 153 local log; |
152 do | 154 do |
153 local conn_name = "s2sout"..tostring(host_session):match("[a-f0-9]*$"); | 155 local conn_name = "s2sout"..tostring(host_session):match("[a-f0-9]*$"); |