From c39b7ac148dae0acb076c9dbefc61e65e7f072f1 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Tue, 5 Dec 2023 20:40:14 +0100 Subject: [PATCH] Fixed incorrect defaults for IFAC size after increase in default values in RNS --- sbapp/sideband/core.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/sbapp/sideband/core.py b/sbapp/sideband/core.py index f36bf83..e7225fb 100644 --- a/sbapp/sideband/core.py +++ b/sbapp/sideband/core.py @@ -2810,6 +2810,11 @@ class SidebandCore(): else: ifac_netkey = self.config["connect_tcp_ifac_passphrase"] + if ifac_netname != None or ifac_netkey != None: + ifac_size = 16 + else: + ifac_size = None + tcpinterface = RNS.Interfaces.TCPInterface.TCPClientInterface( RNS.Transport, "TCPClientInterface", @@ -2834,7 +2839,7 @@ class SidebandCore(): else: if_mode = None - self.reticulum._add_interface(tcpinterface, mode=if_mode, ifac_netname=ifac_netname, ifac_netkey=ifac_netkey) + self.reticulum._add_interface(tcpinterface, mode=if_mode, ifac_netname=ifac_netname, ifac_netkey=ifac_netkey, ifac_size=ifac_size) self.interface_tcp = tcpinterface except Exception as e: @@ -2857,6 +2862,11 @@ class SidebandCore(): else: ifac_netkey = self.config["connect_i2p_ifac_passphrase"] + if ifac_netname != None or ifac_netkey != None: + ifac_size = 16 + else: + ifac_size = None + i2pinterface = RNS.Interfaces.I2PInterface.I2PInterface( RNS.Transport, "I2PInterface", @@ -2880,7 +2890,7 @@ class SidebandCore(): else: if_mode = None - self.reticulum._add_interface(i2pinterface, mode = if_mode, ifac_netname=ifac_netname, ifac_netkey=ifac_netkey) + self.reticulum._add_interface(i2pinterface, mode = if_mode, ifac_netname=ifac_netname, ifac_netkey=ifac_netkey, ifac_size=ifac_size) for si in RNS.Transport.interfaces: if type(si) == RNS.Interfaces.I2PInterface.I2PInterfacePeer: