mirror of https://github.com/MISP/misp-modules
updated IPGeolocation Module
parent
c8de950188
commit
78a60d8e96
|
@ -28,7 +28,7 @@ def handler(q=False):
|
||||||
misperrors['error'] = 'IpGeolocation apiKey is missing'
|
misperrors['error'] = 'IpGeolocation apiKey is missing'
|
||||||
return misperrors
|
return misperrors
|
||||||
|
|
||||||
if request.get('ip-src'):
|
if request.get('ip-dst'):
|
||||||
ip = request['ip-dst']
|
ip = request['ip-dst']
|
||||||
apiKey = request['config']['apiKey']
|
apiKey = request['config']['apiKey']
|
||||||
return handle_ip(apiKey, ip, misperrors)
|
return handle_ip(apiKey, ip, misperrors)
|
||||||
|
|
Loading…
Reference in New Issue