From 5312c8cc8e4c6f550505edc325f099fe709fc021 Mon Sep 17 00:00:00 2001 From: Simon Date: Mon, 7 Feb 2022 02:08:03 +0000 Subject: [PATCH] Support furture version --- hblink.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hblink.py b/hblink.py index 48ba151..17d38c3 100755 --- a/hblink.py +++ b/hblink.py @@ -335,7 +335,7 @@ class OPENBRIDGE(DatagramProtocol): _hash = _packet[62:] #_ckhs = hmac_new(self._config['PASSPHRASE'],_data,sha1).digest() _h = blake2b(key=self._config['PASSPHRASE'], digest_size=16) - if 'VER' in self._config and self._config['VER'] == 3: + if 'VER' in self._config and self._config['VER'] > 2: _h.update(_packet[:53]) elif 'VER' in self._config and self._config['VER'] == 2: _h.update(_packet[:61])