diff options
-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 |