From ce815522804f9f472a22dd58999881e75d5b8961 Mon Sep 17 00:00:00 2001 From: Jordan Date: Fri, 1 Apr 2022 20:19:35 -0700 Subject: asn: support busybox whois --- asn.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'asn.py') diff --git a/asn.py b/asn.py index 42865c5..8174a3c 100755 --- a/asn.py +++ b/asn.py @@ -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) -- cgit v1.2.3-54-g00ecf