175 local host_session = { to_host = to_host, from_host = from_host, host = from_host, |
175 local host_session = { to_host = to_host, from_host = from_host, host = from_host, |
176 notopen = true, type = "s2sout_unauthed", direction = "outgoing", |
176 notopen = true, type = "s2sout_unauthed", direction = "outgoing", |
177 open_stream = session_open_stream }; |
177 open_stream = session_open_stream }; |
178 |
178 |
179 hosts[from_host].s2sout[to_host] = host_session; |
179 hosts[from_host].s2sout[to_host] = host_session; |
|
180 |
|
181 host_session.close = destroy_session; -- This gets replaced by xmppserver_listener later |
180 |
182 |
181 local log; |
183 local log; |
182 do |
184 do |
183 local conn_name = "s2sout"..tostring(host_session):match("[a-f0-9]*$"); |
185 local conn_name = "s2sout"..tostring(host_session):match("[a-f0-9]*$"); |
184 log = logger_init(conn_name); |
186 log = logger_init(conn_name); |