From f330b228b39c3695a7a47a0d6b796bef78255450 Mon Sep 17 00:00:00 2001 From: Simon Date: Mon, 23 May 2022 22:14:20 +0100 Subject: [PATCH] Don't allow traffic from servers with SERVER_ID: 0 --- hblink.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hblink.py b/hblink.py index 2c8ba22..cf50b65 100755 --- a/hblink.py +++ b/hblink.py @@ -449,8 +449,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 _stream_id not in self._laststrid: + if ((len(str(int.from_bytes(_source_server,'big'))) < 4) or (len(str(int.from_bytes(_source_server,'big'))) > 7)): 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) self._laststrid.append(_stream_id)