Skip to content

Commit b437853

Browse files
committed
waf_test: used sharedsec.HTTPClientIPAddre
1 parent 492f1ed commit b437853

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: internal/appsec/waf_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import (
2323
"gopkg.in/DataDog/dd-trace-go.v1/internal/appsec"
2424
"gopkg.in/DataDog/dd-trace-go.v1/internal/appsec/config"
2525
"gopkg.in/DataDog/dd-trace-go.v1/internal/appsec/listener/httpsec"
26+
"gopkg.in/DataDog/dd-trace-go.v1/internal/appsec/listener/sharedsec"
2627

2728
"github.com/stretchr/testify/require"
2829
)
@@ -520,7 +521,7 @@ func BenchmarkSampleWAFContext(b *testing.B) {
520521
_, err = ctx.Run(
521522
waf.RunAddressData{
522523
Persistent: map[string]any{
523-
httpsec.HTTPClientIPAddr: "1.1.1.1",
524+
sharedsec.HTTPClientIPAddr: "1.1.1.1",
524525
httpsec.ServerRequestMethodAddr: "GET",
525526
httpsec.ServerRequestRawURIAddr: "/",
526527
httpsec.ServerRequestHeadersNoCookiesAddr: map[string][]string{

0 commit comments

Comments
 (0)