|
|
|
@ -143,7 +143,7 @@ class OPENBRIDGE(DatagramProtocol):
|
|
|
|
logger.info('(%s) Bridge STUNned, discarding', self._system)
|
|
|
|
logger.info('(%s) Bridge STUNned, discarding', self._system)
|
|
|
|
return
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
|
|
if _packet[:4] == DMRD and self._config['TARGET_IP']:
|
|
|
|
if _packet[:3] == DMR and self._config['TARGET_IP']:
|
|
|
|
if 'VER' in self._config and self._config['VER'] > 1:
|
|
|
|
if 'VER' in self._config and self._config['VER'] > 1:
|
|
|
|
_packet = b''.join([DMRE,_packet[4:11], self._CONFIG['GLOBAL']['SERVER_ID'], time_ns().to_bytes(8,'big'), _packet[15:]])
|
|
|
|
_packet = b''.join([DMRE,_packet[4:11], self._CONFIG['GLOBAL']['SERVER_ID'], time_ns().to_bytes(8,'big'), _packet[15:]])
|
|
|
|
_h = blake2b(key=self._config['PASSPHRASE'], digest_size=16)
|
|
|
|
_h = blake2b(key=self._config['PASSPHRASE'], digest_size=16)
|
|
|
|
|