HttpContext.Connection.RemotePort is not the remote client's port #855
Labels
bug
This issue is a bug.
closed-for-staleness
module/aspnetcore-support
needs-reproduction
This issue needs reproduction.
Description
In #89, the support of obtaining
HttpContext.Connection.RemotePort
value from the APIGatewayProxyRequest'sHeaders["X-Forwarded-Port"]
is implemented.However, this value is not a remote client's port, but the API Gateway's listen port.
Reproduction Steps
Logs
The logs will be like this.
The source IP address shows the real remote client's IP address, but the port shows the API Gateway's listen port.
Environment
Resolution
This is a 🐛 bug-report
The text was updated successfully, but these errors were encountered: