From e1174e6abad1c41685868e9d52229f5bfd13a116 Mon Sep 17 00:00:00 2001 From: n0mjs710 Date: Mon, 9 Mar 2020 13:28:11 -0500 Subject: [PATCH] Added IP address logging for denied registration --- hblink.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hblink.py b/hblink.py index bd2e94f..83b67ad 100755 --- a/hblink.py +++ b/hblink.py @@ -439,7 +439,7 @@ class HBSYSTEM(DatagramProtocol): logger.info('(%s) Sent Challenge Response to %s for login: %s', self._system, int_id(_peer_id), self._peers[_peer_id]['SALT']) else: self.transport.write(b''.join([MSTNAK, _peer_id]), _sockaddr) - logger.warning('(%s) Invalid Login from Radio ID: %s Denied by Registation ACL', self._system, int_id(_peer_id)) + logger.warning('(%s) Invalid Login from %s Radio ID: %s Denied by Registation ACL', self._system, _sockaddr[0], int_id(_peer_id)) else: self.transport.write(b''.join([MSTNAK, _peer_id]), _sockaddr) logger.warning('(%s) Registration denied from Radio ID: %s Maximum number of peers exceeded', self._system, int_id(_peer_id))