On 12/07/2014 21:46, Alexander Karelas wrote: > I know there's $self->tx->remote_address, but that retrieves the address > of the reverse proxy (127.0.0.1). > > Because even though I have set up a X-Real-IP header and a > X-Forwarded-For header, neither of these headers get used by > $self->tx->remote_address. > > What's the right way to retrieve the client's IP address? >
In your case, that's $c->req->headers->header('X-Forwarded-For');
--
Luc
http://www.fiat-tux.fr/
Internet n'est pas compliqué, Internet est ce que vous en faites.
signature.asc
Description: OpenPGP digital signature
