fix typo in peer limit check

This commit is contained in:
n0mjs710 2018-11-25 15:13:36 -06:00
parent 83692f037c
commit bb4a8ff4d5
1 changed files with 1 additions and 1 deletions

View File

@ -371,7 +371,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']:
# 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