We're seeing clientIp as a 127.0.0.1 address in request logs.
It looks like bugsnag-wai has an approach that looks at the first value of X-Forwarded-For, then X-Real-Ip, then Wai.remoteHost. I think we should copy that.
We currently just use Wai.remoteHost, which is apparently wrong in an AWS/ALB context.
We're seeing
clientIp
as a127.0.0.1
address in request logs.It looks like
bugsnag-wai
has an approach that looks at the first value ofX-Forwarded-For
, thenX-Real-Ip
, thenWai.remoteHost
. I think we should copy that.We currently just use
Wai.remoteHost
, which is apparently wrong in an AWS/ALB context.