Skip to content
This repository was archived by the owner on May 21, 2025. It is now read-only.

Commit fde5929

Browse files
committed
feat: source IP from identity for V1
This was tested and works. Strange place for the source IP. It is what it is.
1 parent 472410d commit fde5929

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/request.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,8 @@ func (r *RequestAccessor) EventToRequest(req events.APIGatewayProxyRequest) (*ht
190190
return nil, err
191191
}
192192

193+
httpRequest.RemoteAddr = req.RequestContext.Identity.SourceIP
194+
193195
if req.MultiValueHeaders != nil {
194196
for k, values := range req.MultiValueHeaders {
195197
for _, value := range values {

0 commit comments

Comments
 (0)