diff options
Diffstat (limited to 'asn.py')
-rwxr-xr-x | asn.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -44,10 +44,10 @@ class Listener: log.info(f'{addr[0]} {recv_data}') resp = self._get_announcements(recv_data) - if not resp: - resp = 'no valid hostname or IP discovered' - else: + if resp: resp = self._pretty(resp) + else: + resp = '' finally: conn.sendall(bytes(resp, 'utf-8')) conn.shutdown(socket.SHUT_RDWR) |