From 870208de8efc84208432ad03270de67dc7aacaa7 Mon Sep 17 00:00:00 2001 From: Simon Date: Mon, 28 Dec 2020 13:41:57 +0000 Subject: [PATCH] Always allow re-login from an existing peer --- hblink.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hblink.py b/hblink.py index 6f10f16..e7c31e4 100755 --- a/hblink.py +++ b/hblink.py @@ -406,7 +406,7 @@ class HBSYSTEM(DatagramProtocol): elif _command == RPTL: # RPTLogin -- a repeater wants to login _peer_id = _data[4:8] # Check to see if we've reached the maximum number of allowed peers - if len(self._peers) < self._config['MAX_PEERS']: + if len(self._peers) < self._config['MAX_PEERS'] or _peer_id in self._peers: # Check for valid Radio ID if acl_check(_peer_id, self._CONFIG['GLOBAL']['REG_ACL']) and acl_check(_peer_id, self._config['REG_ACL']): # Build the configuration data strcuture for the peer