mirror of https://github.com/CIRCL/AIL-framework
chg: [domain lookup] extract domain from url input
parent
5a052c47d9
commit
d91e14f200
|
@ -69,6 +69,8 @@ faup = Faup()
|
||||||
|
|
||||||
def api_get_onion_lookup(domain):
|
def api_get_onion_lookup(domain):
|
||||||
domain = domain.lower()
|
domain = domain.lower()
|
||||||
|
url_unpack = unpack_url(domain)
|
||||||
|
domain = url_unpack['domain']
|
||||||
dom = Domain(domain)
|
dom = Domain(domain)
|
||||||
if not is_valid_onion_v3_domain(domain):
|
if not is_valid_onion_v3_domain(domain):
|
||||||
return {'error': 'Invalid Domain', 'domain': domain}, 404
|
return {'error': 'Invalid Domain', 'domain': domain}, 404
|
||||||
|
|
Loading…
Reference in New Issue