Bug#710477:
Damyan Ivanov
dmn at debian.org
Thu Nov 28 20:44:26 GMT 2019
-=| 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.29 (Ubuntu) OpenSSL/1.1.1 mod_apreq2-20090110/2.8.0 mod_perl/2.0.10
> Perl/v5.26.1
the following works for me:
my $conn = $r->connection;
my $ip_addr
= $conn->can('client_ip')
? $conn->client_ip
: $conn->remote_ip;
so one of them works, and I bet it is 'client_ip'
(Debian/sid and Debian/buster (and several releases before that))
Can you share the code that fails for you?
-- Damyan
More information about the pkg-perl-maintainers
mailing list