From c082ec30da78a7e992a1189c7c453833a674a3e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wiktor=20Go=C5=82gowski?= Date: Tue, 15 Oct 2024 13:26:22 +0000 Subject: [PATCH] fix(userspace/libsinsp): disable HTTP proxy for CRI connection MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Wiktor GoĊ‚gowski --- userspace/libsinsp/cri.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/userspace/libsinsp/cri.hpp b/userspace/libsinsp/cri.hpp index c591ad997c..3ed8293caa 100644 --- a/userspace/libsinsp/cri.hpp +++ b/userspace/libsinsp/cri.hpp @@ -33,8 +33,10 @@ namespace cri { template inline cri_interface::cri_interface(const std::string &cri_path) { + grpc::ChannelArguments args; + args.SetInt(GRPC_ARG_ENABLE_HTTP_PROXY, 0); std::shared_ptr channel = - libsinsp::grpc_channel_registry::get_channel("unix://" + cri_path); + libsinsp::grpc_channel_registry::get_channel("unix://" + cri_path, &args); m_cri = api::RuntimeService::NewStub(channel);