From cdbfcbb59c156f5071826fb851b2f440ce87c9b5 Mon Sep 17 00:00:00 2001 From: Cort Buffington Date: Fri, 12 Oct 2018 15:03:36 -0500 Subject: [PATCH] DO NOT USE THIS --- hblink.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hblink.py b/hblink.py index e397c61..20a4adc 100755 --- a/hblink.py +++ b/hblink.py @@ -217,7 +217,8 @@ class OPENBRIDGE(DatagramProtocol): # self._logger.debug('(%s) RX packet from %s -- %s', self._system, _sockaddr, ahex(_data)) if _packet[:4] == 'DMRD': # DMRData -- encapsulated DMR data frame - _data = _data[:53] + _data = _packet[:53] + _hash = _packet[53:] _ckhs = hmac_new(self._config['PASSPHRASE'],_data[53:],sha1).digest() if compare_digest(_hash, _ckhs) and _sockaddr == self._config['TARGET_SOCK']: