Skip to content

Commit

Permalink
lambdaurl: Populate RemoteAddr with SourceIP (#546)
Browse files Browse the repository at this point in the history
  • Loading branch information
lyoung-confluent authored Jan 11, 2024
1 parent cce0845 commit 3a93ed1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lambdaurl/http_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ func Wrap(handler http.Handler) func(context.Context, *events.LambdaFunctionURLR
if err != nil {
return nil, err
}
httpRequest.RemoteAddr = request.RequestContext.HTTP.SourceIP
for k, v := range request.Headers {
httpRequest.Header.Add(k, v)
}
Expand Down

0 comments on commit 3a93ed1

Please sign in to comment.