<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
yes but request->headers->{'x-forwarded-for'} can be<br>
<br>
address client, adresse proxy1, adresse proxy2 etc... <br>
<code><br>
x-forwarded-for":"65.28.225.84, 54.240.144.193"<br>
<br>
</code><br>
<div class="moz-cite-prefix">Le 22/04/2015 10:06, Hermen Lesscher a
écrit :<br>
</div>
<blockquote cite="mid:55375698.7090004@lesscher.net" type="cite">On
22/04/15 09:45, Hugues wrote:
<br>
<blockquote type="cite">Hello
<br>
I move my Dancer app from wpsgi to " starman + apache proxy"
<br>
<br>
in my code, I registered client ip address with
<br>
<br>
my $ip = request->remote_address();
<br>
<br>
<br>
now, Ip address is always 127.0.0.1
<br>
<br>
<br>
</blockquote>
I generally use:
<br>
<br>
my $ip = request->headers->{'x-forwarded-for'} ||
request->address();
<br>
<br>
(Dancer 1, though, don't know if it works in Dancer2)
<br>
<br>
Regards, Hermen
<br>
<br>
</blockquote>
<br>
</body>
</html>