From 047b1df5a43bb41fc34e5270ef33a300121bd783 Mon Sep 17 00:00:00 2001 From: Simon Date: Mon, 8 Aug 2022 00:17:12 +0100 Subject: [PATCH] Fix BCTO --- hblink.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hblink.py b/hblink.py index a5edb67..f485840 100755 --- a/hblink.py +++ b/hblink.py @@ -752,9 +752,9 @@ class OPENBRIDGE(DatagramProtocol): if _packet[:4] == BCTO: if self._config['VER'] > 5: - _hash = _packet[14:] + _hash = _packet[18:] _h = blake2b(key=self._config['PASSPHRASE'], digest_size=16) - _h.update(_packet[:14]) + _h.update(_packet[:18]) _hash2 = _h.digest() _uid = _packet[4:8] _src = _packet[8:12]