From 64e48dd3a62b0ec3020e9de8dd23778a29728c35 Mon Sep 17 00:00:00 2001 From: Guy Arbitman Date: Tue, 4 Mar 2025 14:54:24 +0200 Subject: [PATCH] usm: nodejs: Check if tls is supported --- pkg/network/usm/nodejs.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/network/usm/nodejs.go b/pkg/network/usm/nodejs.go index 1d9d310a95554a..bfbc6700eb0eac 100644 --- a/pkg/network/usm/nodejs.go +++ b/pkg/network/usm/nodejs.go @@ -9,6 +9,7 @@ package usm import ( "fmt" + usmconfig "github.com/DataDog/datadog-agent/pkg/network/usm/config" "io" "strings" @@ -198,7 +199,7 @@ type nodeJSMonitor struct { var _ protocols.Protocol = (*nodeJSMonitor)(nil) func newNodeJSMonitor(mgr *manager.Manager, c *config.Config) (protocols.Protocol, error) { - if !c.EnableNodeJSMonitoring { + if !c.EnableNodeJSMonitoring || usmconfig.TLSSupported(c) { return nil, nil }