Skip to content

Commit

Permalink
waf_test: used sharedsec.HTTPClientIPAddre
Browse files Browse the repository at this point in the history
  • Loading branch information
Hellzy committed May 23, 2024
1 parent 23c17fb commit ad0dc14
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/appsec/waf_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (
"gopkg.in/DataDog/dd-trace-go.v1/internal/appsec"
"gopkg.in/DataDog/dd-trace-go.v1/internal/appsec/config"
"gopkg.in/DataDog/dd-trace-go.v1/internal/appsec/listener/httpsec"
"gopkg.in/DataDog/dd-trace-go.v1/internal/appsec/listener/sharedsec"

"github.com/stretchr/testify/require"
)
Expand Down Expand Up @@ -520,7 +521,7 @@ func BenchmarkSampleWAFContext(b *testing.B) {
_, err = ctx.Run(
waf.RunAddressData{
Persistent: map[string]any{
httpsec.HTTPClientIPAddr: "1.1.1.1",
sharedsec.HTTPClientIPAddr: "1.1.1.1",
httpsec.ServerRequestMethodAddr: "GET",
httpsec.ServerRequestRawURIAddr: "/",
httpsec.ServerRequestHeadersNoCookiesAddr: map[string][]string{
Expand Down

0 comments on commit ad0dc14

Please sign in to comment.