From c8fd937fb07a13b17f5055ae797b1eb5ef1a0cb7 Mon Sep 17 00:00:00 2001 From: Ondrej Ambrus Date: Mon, 18 Aug 2025 10:25:13 +0200 Subject: [PATCH] fixed http proxy setting mismatch between iris and vt-module, also fixed http/https naming error --- iris_vt_module/vt_handler/vt_handler.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/iris_vt_module/vt_handler/vt_handler.py b/iris_vt_module/vt_handler/vt_handler.py index 13b4ac1..c9de644 100644 --- a/iris_vt_module/vt_handler/vt_handler.py +++ b/iris_vt_module/vt_handler/vt_handler.py @@ -46,11 +46,11 @@ def get_vt_instance(self): api_key = self.mod_config.get('vt_api_key') proxies = {} - if self.server_config.get('http_proxy'): - proxies['https'] = self.server_config.get('HTTPS_PROXY') - if self.server_config.get('https_proxy'): - proxies['http'] = self.server_config.get('HTTP_PROXY') + proxies['https'] = self.server_config.get('https_proxy') + + if self.server_config.get('http_proxy'): + proxies['http'] = self.server_config.get('http_proxy') if is_premium: return PrivateApi(api_key, proxies=proxies) @@ -274,4 +274,4 @@ def handle_vt_hash(self, ioc): else: self.log.info('Skipped adding attribute report. Option disabled') - return InterfaceStatus.I2Success("Successfully processed hash") \ No newline at end of file + return InterfaceStatus.I2Success("Successfully processed hash")