chg: Make lookyloo link org only in MISP export for private instances

pull/165/head
Raphaël Vinot 2021-02-01 14:58:06 +01:00
parent 14147ddd18
commit 54ba67bb87
1 changed files with 2 additions and 0 deletions

View File

@ -917,6 +917,8 @@ class Lookyloo():
event = MISPEvent()
event.info = f'Lookyloo Capture ({cache.url})'
lookyloo_link: MISPAttribute = event.add_attribute('link', f'https://{self.public_domain}/tree/{capture_uuid}') # type: ignore
if not self.is_public_instance:
lookyloo_link.distribution = 0
initial_url = URLObject(cache.url)
redirects = [URLObject(url) for url in cache.redirects if url != cache.url]