mirror of
https://github.com/markqvist/Reticulum.git
synced 2026-11-19 22:46:32 -05:00
Fixed missing interface.bitrate validation in extra link proof timeout calculation, thanks to Zenith
This commit is contained in:
parent
49073fcca5
commit
bde5611a0d
1 changed files with 1 additions and 1 deletions
|
|
@ -2963,7 +2963,7 @@ class Transport:
|
|||
|
||||
@staticmethod
|
||||
def extra_link_proof_timeout(interface):
|
||||
if interface != None: return ((1/interface.bitrate)*8)*RNS.Reticulum.MTU
|
||||
if interface != None and interface.bitrate: return ((1/interface.bitrate)*8)*RNS.Reticulum.MTU
|
||||
else: return 0
|
||||
|
||||
@staticmethod
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue