Skip to content

Commit

Permalink
fix(userspace/libsinsp): disable HTTP proxy for CRI connection
Browse files Browse the repository at this point in the history
Signed-off-by: Wiktor Gołgowski <wiktor.golgowski@sysdig.com>
  • Loading branch information
wigol committed Oct 15, 2024
1 parent c49225d commit bc92c52
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion userspace/libsinsp/cri.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ namespace cri {

template<typename api>
inline cri_interface<api>::cri_interface(const std::string &cri_path) {
grpc::ChannelArguments args;
args.SetInt(GRPC_ARG_ENABLE_HTTP_PROXY, 0);
std::shared_ptr<grpc::Channel> 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);

Expand Down

0 comments on commit bc92c52

Please sign in to comment.