Hi,

With 1.22_01-dev I got an error:

[Sun Apr  2 16:50:03 2000] [error] Modification of a read-only value attempted at 
/usr/local/apache/lib/perl/My/ProxyRemoteAddr.pm line 15, <DATA> chunk 1.

Here is the code:
 my $header = $r->headers_in->{'X-Forwarded-For'};
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  if ( my $ip = (split /,\s*/, $header)[-1] ) {
     $r->connection->remote_ip($ip);
  }

What's wrong ? 1.22 works fine.

        Regards,

                Oleg
_____________________________________________________________
Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
Sternberg Astronomical Institute, Moscow University (Russia)
Internet: [EMAIL PROTECTED], http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83


Reply via email to