Skip to content

Commit

Permalink
Merge pull request #775 from k2io/develop
Browse files Browse the repository at this point in the history
Minor fixes for security agent.
  • Loading branch information
nr-swilloughby authored Sep 1, 2023
2 parents f4aa806 + 19abf99 commit 7d31904
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion v3/integrations/nrsecurityagent/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/newrelic/go-agent/v3/integrations/nrsecurityagent
go 1.19

require (
github.com/newrelic/csec-go-agent v0.3.0
github.com/newrelic/csec-go-agent v0.4.0
github.com/newrelic/go-agent/v3 v3.24.1
github.com/newrelic/go-agent/v3/integrations/nrsqlite3 v1.2.0
gopkg.in/yaml.v2 v2.4.0
Expand Down
2 changes: 1 addition & 1 deletion v3/integrations/nrsecurityagent/nrsecurityagent.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func defaultSecurityConfig() SecurityConfig {
// If env is set to false,the security module is not loaded
func isSecurityAgentEnabled() bool {
if env := os.Getenv("NEW_RELIC_SECURITY_AGENT_ENABLED"); env != "" {
if b, err := strconv.ParseBool("false"); err == nil {
if b, err := strconv.ParseBool(env); err == nil {
return b
}
}
Expand Down

0 comments on commit 7d31904

Please sign in to comment.