Add support for HTTP(s) proxies

This commit is contained in:
Nicolas Grorod 2021-01-21 14:32:25 +01:00
parent b78452423c
commit 088816cbf7

View File

@ -27,10 +27,11 @@ class OpenCTIAnalyzer(Analyzer):
"name": names[i], "name": names[i],
"url": urls[i], "url": urls[i],
"api_client": OpenCTIApiClient( "api_client": OpenCTIApiClient(
urls[i], url=urls[i],
keys[i], token=keys[i],
"error", log_level="error",
ssl, ssl_verify=ssl,
proxies={'http': self.http_proxy, 'https': self.https_proxy}
) )
}) })
except Exception as e: except Exception as e: