Check for proper source server ID

master
Simon 5 years ago
parent 8572294817
commit 70983c0f7d

@ -397,7 +397,7 @@ class OPENBRIDGE(DatagramProtocol):
return
#Discard bad source server
if (len(str(int.from_bytes(_source_server,'big')) > 5) or (len(str(int.from_bytes(_source_server,'big')) < 4) ):
if (len(str(int.from_bytes(_source_server,'big'))) > 5) or (len(str(int.from_bytes(_source_server,'big'))) < 4):
logger.warning('(%s) Source Server should be 4 or 5 digits, discarding', self._system)
self.send_bcsq(_dst_id,_stream_id)
return

Loading…
Cancel
Save

Powered by TurnKey Linux.