Revert "Bad Apache call"

This reverts commit 7663fca5def862f7d2ebae034cfebed1b6e2f515.
This commit is contained in:
Xavier Guimard 2016-03-14 18:56:31 +00:00
parent 756a580d1d
commit 0eedd486e8

View File

@ -14,7 +14,6 @@ use Apache2::RequestIO;
use Apache2::Const;
use Apache2::Filter;
use APR::Table;
eval 'use APR::SockAddr';
use Apache2::Const -compile =>
qw(FORBIDDEN HTTP_UNAUTHORIZED REDIRECT OK DECLINED DONE SERVER_ERROR AUTH_REQUIRED HTTP_SERVICE_UNAVAILABLE);
@ -152,7 +151,7 @@ sub remote_ip {
my $remote_ip = (
$request->connection->can('remote_ip')
? $request->connection->remote_ip
: $request->connection->client_ip->ip_get
: $request->connection->client_ip
);
return $remote_ip;
}