mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-26 07:47:17 +00:00
chg: [domain lookup] extract domain from url input
This commit is contained in:
parent
5a052c47d9
commit
d91e14f200
1 changed files with 2 additions and 0 deletions
|
@ -69,6 +69,8 @@ faup = Faup()
|
|||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue