Skip to content

Commit

Permalink
[#602] Use ExpandedPyMISP in case of a single MISP connection also
Browse files Browse the repository at this point in the history
  • Loading branch information
3c7 committed Jan 31, 2020
1 parent f19d449 commit 779b303
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions analyzers/MISP/mispclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ def __init__(self, url, key, ssl=True, name='Unnamed', proxies=None):
elif isinstance(ssl, bool):
verify = ssl
self.misp_connections.append(pymisp.ExpandedPyMISP(url=server,
key=key[idx],
ssl=verify,
proxies=proxies))
key=key[idx],
ssl=verify,
proxies=proxies))
else:
verify = True
if isinstance(ssl, str) and os.path.isfile(ssl):
Expand All @@ -68,10 +68,10 @@ def __init__(self, url, key, ssl=True, name='Unnamed', proxies=None):
raise CertificateNotFoundError('Certificate not found under {}.'.format(ssl))
elif isinstance(ssl, bool):
verify = ssl
self.misp_connections.append(pymisp.PyMISP(url=url,
key=key,
ssl=verify,
proxies=proxies))
self.misp_connections.append(pymisp.ExpandedPyMISP(url=url,
key=key,
ssl=verify,
proxies=proxies))
self.misp_name = name

@staticmethod
Expand Down

0 comments on commit 779b303

Please sign in to comment.