Skip to content
Permalink
Browse files
Fix to support Apache HTTP Server 2.4
  • Loading branch information
bblough committed Dec 1, 2018
1 parent b3d1b09 commit 5abcc5e4a0f062255070e44b3cb329cf88c80118
Showing 1 changed file with 4 additions and 0 deletions.
@@ -298,7 +298,11 @@ axis2_apache2_worker_process_request(
out_stream = axutil_stream_create_basic(env);
AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI, "Client HTTP version %s", http_version);

#if (AP_SERVER_MAJORVERSION_NUMBER == 2 && AP_SERVER_MINORVERSION_NUMBER >= 4)
peer_ip = request->connection->client_ip;
#else
peer_ip = request->connection->remote_ip;
#endif

if(peer_ip)
{

0 comments on commit 5abcc5e

Please sign in to comment.