diff options
author | Jordan <me@jordan.im> | 2022-04-01 20:19:35 -0700 |
---|---|---|
committer | Jordan <me@jordan.im> | 2022-04-01 20:19:35 -0700 |
commit | ce815522804f9f472a22dd58999881e75d5b8961 (patch) | |
tree | e5bd583609223bf3cea5445d23b7bcbab1828d8b | |
parent | 6b2a8b55068f2621c6a689504035f329801982e1 (diff) | |
download | asn-ce815522804f9f472a22dd58999881e75d5b8961.tar.gz asn-ce815522804f9f472a22dd58999881e75d5b8961.zip |
asn: support busybox whois
-rwxr-xr-x | asn.py | 6 | ||||
m--------- | location-database | 0 |
2 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) diff --git a/location-database b/location-database -Subproject 7ad544905562799b98ae99b3971d6db770ba0b4 +Subproject d5974438a2fcc46df8a864f17c600587ec32ded |