Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
markqvist committed Jan 14, 2025
1 parent ec4f4d5 commit 1a7d20a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
3 changes: 0 additions & 3 deletions Examples/Ratchets.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ def server(configpath):

# We must first initialise Reticulum
reticulum = RNS.Reticulum(configpath)

# TODO: Remove
RNS.loglevel = RNS.LOG_DEBUG

# Randomly create a new identity for our echo server
server_identity = RNS.Identity()
Expand Down
1 change: 0 additions & 1 deletion RNS/Link.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,6 @@ def request(self, path, data = None, response_callback = None, failed_callback =
def update_mdu(self):
self.mdu = self.mtu - RNS.Reticulum.HEADER_MAXSIZE - RNS.Reticulum.IFAC_MIN_SIZE
self.mdu = math.floor((self.mtu-RNS.Reticulum.IFAC_MIN_SIZE-RNS.Reticulum.HEADER_MINSIZE-RNS.Identity.TOKEN_OVERHEAD)/RNS.Identity.AES128_BLOCKSIZE)*RNS.Identity.AES128_BLOCKSIZE - 1
RNS.log(f"Link MDU updated to {self.mdu}", RNS.LOG_DEBUG) # TODO: Remove debug

def rtt_packet(self, packet):
try:
Expand Down
2 changes: 1 addition & 1 deletion RNS/Transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -1802,7 +1802,7 @@ def inbound(raw, interface=None):
nh_mtu = packet.receiving_interface.HW_MTU
else:
nh_mtu = RNS.Reticulum.MTU
RNS.log(f"Final hop path MTU of {path_mtu}, possible MTU is {nh_mtu}", RNS.LOG_DEBUG) # TODO: Remove debug

if path_mtu:
if packet.receiving_interface.HW_MTU == None:
RNS.log(f"No next-hop HW MTU, disabling link MTU upgrade", RNS.LOG_DEBUG) # TODO: Remove debug
Expand Down

0 comments on commit 1a7d20a

Please sign in to comment.