22 Apr
2015
22 Apr
'15
11:28 a.m.
Hugues <hugues@max4mail.com> writes:
Thanks Paulo and Stefan
I change my code to:
my $ip;
if ( request->remote_address() eq "127.0.0.1" ) { $ip = request->header('x-forwarded-for'); } else { $ip = request->remote_address(); }
debug "My ip : ". $ip;
it's ok now
Try to load Plack::Middleware::ReverseProxy, which should do the trick. -- Marco