chg: [hosts] filter onion

This commit is contained in:
terrtia 2024-01-09 14:31:55 +01:00
parent bdaa4c51c9
commit d6d67f6a4c
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0

View file

@ -60,6 +60,7 @@ class Hosts(AbstractModule):
print(f'{len(hosts)} host {item.get_id()}') print(f'{len(hosts)} host {item.get_id()}')
for host in hosts: for host in hosts:
# print(host) # print(host)
if not host.endswith('.onion'):
self.add_message_to_queue(message=str(host), queue='Host') self.add_message_to_queue(message=str(host), queue='Host')