Hugues <[email protected]> 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 _______________________________________________ dancer-users mailing list [email protected] http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
