From 9ae3db169ed464d37f90ac6371af09708ca96eda Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Thu, 20 Aug 2026 08:38:09 +0200 Subject: [PATCH] Fixed medium_timeout init --- RNS/Transport.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RNS/Transport.py b/RNS/Transport.py index 3a25de34..7a68df26 100755 --- a/RNS/Transport.py +++ b/RNS/Transport.py @@ -3294,7 +3294,7 @@ class Transport: # except the requestor interface. The discovery # timeout must also cover a full round trip for # an MTU on the slowest online interface. - if not Transport.lowest_interface_bitrate: medium_timeout = None + if not Transport.lowest_interface_bitrate: medium_timeout = 0 else: medium_timeout = 2*(RNS.Reticulum.MTU*8/max(Transport.lowest_interface_bitrate, RNS.Reticulum.MINIMUM_BITRATE)) + RNS.Reticulum.DEFAULT_PER_HOP_TIMEOUT discovery_timeout = max(Transport.PATH_REQUEST_TIMEOUT, medium_timeout)