Skip to content

Commit

Permalink
usm: nodejs: Check if tls is supported
Browse files Browse the repository at this point in the history
  • Loading branch information
guyarb committed Mar 5, 2025
1 parent cdcf555 commit 64e48dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/network/usm/nodejs.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ package usm

import (
"fmt"
usmconfig "github.com/DataDog/datadog-agent/pkg/network/usm/config"
"io"
"strings"

Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit 64e48dd

Please sign in to comment.