Putting a simple test script together, I found my problem. The client_ip
method doesn't work on Apache2::Connection objects unless the
Apache2::Connection module is loaded in the current namespace.
package test;
use strict;
use warnings;
use Apache2::RequestRec ();
use Apache2::Const -compile => '
-=| Chris Denley, 28.11.2019 08:02:52 -0600 |=-
> client_ip and remote_ip do not work. Is there no way to get this value
> anymore?
>
> Can't locate object method "remote_ip" via package "Apache2::Connection"
> Can't locate object method "client_ip" via package "Apache2::Connection"
> Apache/2.4.
client_ip and remote_ip do not work. Is there no way to get this value
anymore?
Can't locate object method "remote_ip" via package "Apache2::Connection"
Can't locate object method "client_ip" via package "Apache2::Connection"
*Apache/2.4.29 (Ubuntu) OpenSSL/1.1.1 mod_apreq2-20090110/2.8.0
mod_perl
Package: libapache2-mod-perl2
Version: 2.0.8+httpd24-r1449661-1
>From #666822:
On Fri, May 24, 2013 at 11:33:22PM +0300, Damyan Ivanov wrote:
> There is an incompatibility with the wheezy version that we need to
> address somehow. "remote_ip" and "remote_port" request methods are
> renamed to
4 matches
Mail list logo