Allow 5s instead of 2s for packet validity

ta
Simon 4 years ago
parent f0c5f29507
commit 1ffa49f0c9

@ -387,8 +387,8 @@ class OPENBRIDGE(DatagramProtocol):
return return
#Discard old packets #Discard old packets
if (int.from_bytes(_timestamp,'big')/1000000000) < (time() - 2): if (int.from_bytes(_timestamp,'big')/1000000000) < (time() - 5):
logger.warning('(%s) Packet more than 2s old!, discarding', self._system) logger.warning('(%s) Packet more than 5s old!, discarding', self._system)
return return
#Increment max hops #Increment max hops

Loading…
Cancel
Save

Powered by TurnKey Linux.