From 9b15cf229525ce363ac2598ff28f01a55ef0834f Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Sat, 11 Jan 2025 15:52:40 +0100 Subject: [PATCH] Check link MTU discovery is enabled --- RNS/Link.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RNS/Link.py b/RNS/Link.py index 49fab6e..8333ed7 100644 --- a/RNS/Link.py +++ b/RNS/Link.py @@ -297,7 +297,7 @@ class Link: def prove(self): mtu_bytes = b"" - if self.mtu != RNS.Reticulum.MTU: + if RNS.Reticulum.LINK_MTU_DISCOVERY and self.mtu != RNS.Reticulum.MTU: mtu_bytes = Link.mtu_bytes(self.mtu) signed_data = self.link_id+self.pub_bytes+self.sig_pub_bytes+mtu_bytes