From 15a5633bdee527bd28a2e91197cb352325d3b5f8 Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 11 Aug 2022 12:36:29 +0100 Subject: [PATCH] Revert "Revert "dkjdjk"" This reverts commit 3538196ee0060ee0838ef2d52fe83ac455cd3c2f. --- hblink.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hblink.py b/hblink.py index 5f9062f..4e3844e 100755 --- a/hblink.py +++ b/hblink.py @@ -278,6 +278,8 @@ class OPENBRIDGE(DatagramProtocol): if '_bcka' in self._CONFIG['SYSTEMS'][system] and self._CONFIG['SYSTEMS'][system]['_bcka'] < time() - 60: continue _uid = bytes_4(randint(0x00, 0xFFFFFFFF)) + #add data from this packet to our local TOPO view + self.process_bcto(self._CONFIG['GLOBAL']['SERVER_ID'],self._CONFIG['SYSTEMS'][system]['NETWORK_ID'],self._CONFIG['SYSTEMS'][system]['VER'].to_bytes(1,"big"),_hops) _packet = b''.join([BCTO,_uid,self._CONFIG['GLOBAL']['SERVER_ID'],self._CONFIG['SYSTEMS'][system]['NETWORK_ID'],self._CONFIG['SYSTEMS'][system]['VER'].to_bytes(1,"big"),_hops]) _h = blake2b(key=self._config['PASSPHRASE'], digest_size=16) _h.update(_packet)