Changes with Apache 2.4.11
+ *) mod_status: Honor client IP address using mod_remoteip. PR 55886.
+ [Jim Jagielski]
+
*) cmake-based build for Windows: Fix incompatibility with cmake 2.8.12
and later. PR 56615. [Chuck Liu <cliu81 gmail.com>, Jeff Trawick]
PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
[ start all new proposals below, under PATCHES PROPOSED. ]
- * mod_status: honor mod_remoteip.
- trunk patch: http://svn.apache.org/r1624349
- 2.4.x patch: trunk patch works
- +1: jim, jkaluza, mrumph
- mrumph: This fix should be credited to bug 55886.
-
* mod_cache: Avoid sending a 304 to an unconditional request during a
revalidation. PR56881
trunk patch: http://svn.apache.org/r1619835
ws->conn_bytes = 0;
}
if (r) {
- apr_cpystrn(ws->client, ap_get_remote_host(c, r->per_dir_config,
- REMOTE_NOLOOKUP, NULL), sizeof(ws->client));
+ const char *client = ap_get_remote_host(c, r->per_dir_config,
+ REMOTE_NOLOOKUP, NULL);
+ if (!client || !strcmp(client, c->client_ip)) {
+ apr_cpystrn(ws->client, r->useragent_ip, sizeof(ws->client));
+ }
+ else {
+ apr_cpystrn(ws->client, client, sizeof(ws->client));
+ }
copy_request(ws->request, sizeof(ws->request), r);
if (r->server) {
apr_snprintf(ws->vhost, sizeof(ws->vhost), "%s:%d",