Emergency fix - unique packets break hashing

ta
Simon 4 years ago
parent 38430a8e86
commit ae5aa88199
No known key found for this signature in database
GPG Key ID: 6ACF11630B5D8F82

@ -338,7 +338,7 @@ class OPENBRIDGE(DatagramProtocol):
if 'VER' in self._config and self._config['VER'] == 2: if 'VER' in self._config and self._config['VER'] == 2:
_h.update(_packet[:61]) _h.update(_packet[:61])
elif 'VER' in self._config and self._config['VER'] >= 3: elif 'VER' in self._config and self._config['VER'] >= 3:
_h.update(_packet[:53]) _h.update(_packet[:54])
_ckhs = _h.digest() _ckhs = _h.digest()
if compare_digest(_hash, _ckhs) and (_sockaddr == self._config['TARGET_SOCK'] or self._config['RELAX_CHECKS']): if compare_digest(_hash, _ckhs) and (_sockaddr == self._config['TARGET_SOCK'] or self._config['RELAX_CHECKS']):

Loading…
Cancel
Save

Powered by TurnKey Linux.