Skip to content

Commit

Permalink
chg: [domain lookup] extract domain from url input
Browse files Browse the repository at this point in the history
  • Loading branch information
Terrtia committed Oct 4, 2024
1 parent 5a052c4 commit d91e14f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/lib/crawlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@

def api_get_onion_lookup(domain):
domain = domain.lower()
url_unpack = unpack_url(domain)
domain = url_unpack['domain']
dom = Domain(domain)
if not is_valid_onion_v3_domain(domain):
return {'error': 'Invalid Domain', 'domain': domain}, 404
Expand Down

0 comments on commit d91e14f

Please sign in to comment.