mirror of https://github.com/MISP/misp-modules
add domain to expand
parent
de6a81d488
commit
396b71ef3b
|
@ -44,8 +44,10 @@ def handler(q=False):
|
|||
return handle_ip(api,ip,misperrors)
|
||||
elif request.get('domain'):
|
||||
domain = request['domain']
|
||||
return handle_domain(api, domain, misperrors)
|
||||
elif request.get('hostname'):
|
||||
hostname = request['hostname']
|
||||
return handle_domain(api, hostname, misperrors)
|
||||
else:
|
||||
misperrors['error'] = "Unsupported attributes type"
|
||||
return misperrors
|
||||
|
|
Loading…
Reference in New Issue