It was ignoring 0

identtg
Simon 4 years ago
parent 1467e085fc
commit ad1ede807e
No known key found for this signature in database
GPG Key ID: 6ACF11630B5D8F82

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

Loading…
Cancel
Save

Powered by TurnKey Linux.