axis-c-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From billblo...@apache.org
Subject svn commit: r1847918 - /axis/axis2/c/core/trunk/src/core/transport/http/server/apache2/apache2_worker.c
Date Sat, 01 Dec 2018 20:07:34 GMT
Author: billblough
Date: Sat Dec  1 20:07:33 2018
New Revision: 1847918

URL: http://svn.apache.org/viewvc?rev=1847918&view=rev
Log:
Fix to support Apache HTTP Server 2.4

Modified:
    axis/axis2/c/core/trunk/src/core/transport/http/server/apache2/apache2_worker.c

Modified: axis/axis2/c/core/trunk/src/core/transport/http/server/apache2/apache2_worker.c
URL: http://svn.apache.org/viewvc/axis/axis2/c/core/trunk/src/core/transport/http/server/apache2/apache2_worker.c?rev=1847918&r1=1847917&r2=1847918&view=diff
==============================================================================
--- axis/axis2/c/core/trunk/src/core/transport/http/server/apache2/apache2_worker.c (original)
+++ axis/axis2/c/core/trunk/src/core/transport/http/server/apache2/apache2_worker.c Sat Dec
 1 20:07:33 2018
@@ -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)
     {



Mime
View raw message