Fix bug when options is sent but system does not appear to be logged in
This commit is contained in:
parent
72eb434bf0
commit
2e4134656f
@ -621,6 +621,10 @@ class HBSYSTEM(DatagramProtocol):
|
|||||||
self.send_peer(_peer_id, b''.join([RPTACK, _peer_id]))
|
self.send_peer(_peer_id, b''.join([RPTACK, _peer_id]))
|
||||||
logger.info('(%s) Peer %s has sent options %s', self._system, _this_peer['CALLSIGN'], _this_peer['OPTIONS'])
|
logger.info('(%s) Peer %s has sent options %s', self._system, _this_peer['CALLSIGN'], _this_peer['OPTIONS'])
|
||||||
self._CONFIG['SYSTEMS'][self._system]['OPTIONS'] = _this_peer['OPTIONS'].decode()
|
self._CONFIG['SYSTEMS'][self._system]['OPTIONS'] = _this_peer['OPTIONS'].decode()
|
||||||
|
else:
|
||||||
|
self.transport.write(b''.join([MSTNAK, _peer_id]), _sockaddr)
|
||||||
|
logger.warning('(%s) Options from Radio ID that is not logged: %s', self._system, int_id(_peer_id))
|
||||||
|
|
||||||
|
|
||||||
elif _command == RPTP: # RPTPing -- peer is pinging us
|
elif _command == RPTP: # RPTPing -- peer is pinging us
|
||||||
_peer_id = _data[7:11]
|
_peer_id = _data[7:11]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user