Skip to content

Commit 3a93ed1

Browse files
lambdaurl: Populate RemoteAddr with SourceIP (#546)
1 parent cce0845 commit 3a93ed1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lambdaurl/http_handler.go

+1
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ func Wrap(handler http.Handler) func(context.Context, *events.LambdaFunctionURLR
118118
if err != nil {
119119
return nil, err
120120
}
121+
httpRequest.RemoteAddr = request.RequestContext.HTTP.SourceIP
121122
for k, v := range request.Headers {
122123
httpRequest.Header.Add(k, v)
123124
}

0 commit comments

Comments
 (0)