Software /
code /
prosody
Diff
core/s2smanager.lua @ 10243:b36765ab0ae3
core.s2smanager: Add [direction] boolean flags to s2s connections
This will allow representing connections that go both directions
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 07 Sep 2019 17:31:26 +0200 |
parent | 10103:18cab054364a |
child | 10244:483cc47f15f8 |
line wrap: on
line diff
--- a/core/s2smanager.lua Sun Sep 08 16:48:53 2019 +0200 +++ b/core/s2smanager.lua Sat Sep 07 17:31:26 2019 +0200 @@ -31,6 +31,7 @@ sessionlib.set_logger(host_session); sessionlib.set_conn(host_session, conn); host_session.direction = "incoming"; + host_session.incoming = true; host_session.hosts = {}; incoming_s2s[host_session] = true; return host_session; @@ -45,6 +46,7 @@ host_session.host = from_host; host_session.notopen = true; host_session.direction = "outgoing"; + host_session.outgoing = true; hosts[from_host].s2sout[to_host] = host_session; return host_session; end