Why not just use the logic for fingering the remote IP as detailed before. In Apache syntax it would be:
my $ip = $r->headers_in->get('X-Forwarded-For') || $r->get_remote_host() || $r->connection->remote_ip(); ($ip) = split /\s*,/, $ip;
cheers
tachyon
In reply to Re^7: HTTP::Proxy and X-Forwarded-For headers
by tachyon
in thread HTTP::Proxy and X-Forwarded-For headers
by cleverett
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |