From 2448469a11fecc6aff083a8456bf27b28dbe6c84 Mon Sep 17 00:00:00 2001 From: Simon Date: Wed, 16 Feb 2022 02:53:01 +0000 Subject: [PATCH] Only 2s old packets --- hblink.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hblink.py b/hblink.py index 0630a0e..46be260 100755 --- a/hblink.py +++ b/hblink.py @@ -387,8 +387,8 @@ class OPENBRIDGE(DatagramProtocol): return #Discard old packets - if (int.from_bytes(_timestamp,'big')/1000000000) < (time() - 30): - logger.warning('(%s) Packet more than 30s old!, discarding', self._system) + if (int.from_bytes(_timestamp,'big')/1000000000) < (time() - 2): + logger.warning('(%s) Packet more than 2s old!, discarding', self._system) return #Increment max hops