# HG changeset patch # User Kim Alvefur # Date 1567870286 -7200 # Node ID b36765ab0ae37488dfe3a74cca72054b8daa0f58 # Parent 7e5d2a6c9390df6fc111b01f02f7c9f78719143b core.s2smanager: Add [direction] boolean flags to s2s connections This will allow representing connections that go both directions diff -r 7e5d2a6c9390 -r b36765ab0ae3 core/s2smanager.lua --- 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