limit wrong ver logging

ta
Simon 4 years ago
parent 265519fe03
commit a74919dd61
No known key found for this signature in database
GPG Key ID: 6ACF11630B5D8F82

@ -234,7 +234,9 @@ class OPENBRIDGE(DatagramProtocol):
if _packet[:3] == DMR: # DMRData -- encapsulated DMR data frame
if _packet[:4] == DMRD:
if self._config['VER'] > 1:
logger.warning('(%s) *ProtoControl* Version 1 protocol prohibited by PROTO_VER, Ver: %s',self._system,self._config['VER'])
if _stream_id not in self._laststrid:
logger.warning('(%s) *ProtoControl* Version 1 protocol prohibited by PROTO_VER, Ver: %s',self._system,self._config['VER'])
self._laststrid.append(_stream_id)
self.send_bcve()
return
_data = _packet[:53]

Loading…
Cancel
Save

Powered by TurnKey Linux.