char *buf, int buflen)
{
if (info->r && !(arg && *arg == 'c'))
- return apr_snprintf(buf, buflen, "%s:%d", info->r->client_ip,
- info->r->client_addr->port);
+ return apr_snprintf(buf, buflen, "%s:%d", info->r->useragent_ip,
+ info->r->useragent_addr->port);
else if (info->c)
return apr_snprintf(buf, buflen, "%s:%d", info->c->peer_ip,
info->c->peer_addr->port);
}
/*
- * client_ip/peer_ip can be client or backend server. If we have a scoreboard
- * handle, it is likely a client.
+ * useragent_ip/peer_ip can be client or backend server. If we have
+ * a scoreboard handle, it is likely a client.
*/
if (info->r) {
len += apr_snprintf(buf + len, buflen - len,
info->r->connection->sbh ? "[client %s:%d] " : "[remote %s:%d] ",
- info->r->client_ip, info->r->client_addr->port);
+ info->r->useragent_ip, info->r->useragent_addr->port);
}
else if (info->c) {
len += apr_snprintf(buf + len, buflen - len,
*/
r->used_path_info = AP_REQ_DEFAULT_PATH_INFO;
- r->client_addr = conn->peer_addr;
- r->client_ip = conn->peer_ip;
+ r->useragent_addr = conn->peer_addr;
+ r->useragent_ip = conn->peer_ip;
tmp_bb = apr_brigade_create(r->pool, r->connection->bucket_alloc);
rnew->output_filters = r->proto_output_filters;
}
- rnew->client_addr = r->client_addr;
- rnew->client_ip = r->client_ip;
+ rnew->useragent_addr = r->useragent_addr;
+ rnew->useragent_ip = r->useragent_ip;
/* no input filters for a subrequest */
case 27:
return r->status ? apr_psprintf(ctx->p, "%d", r->status) : "";
case 28:
- return r->client_ip;
+ return r->useragent_ip;
default:
ap_assert(0);
return NULL;
if (!ctx->r)
return FALSE;
- return apr_ipsubnet_test(subnet, ctx->r->client_addr);
+ return apr_ipsubnet_test(subnet, ctx->r->useragent_addr);
}
static int op_T(ap_expr_eval_ctx_t *ctx, const void *data, const char *arg)
apr_psprintf(r->pool, "%u", ap_get_server_port(r)));
add_unless_null(e, "REMOTE_HOST",
ap_get_remote_host(c, r->per_dir_config, REMOTE_HOST, NULL));
- apr_table_addn(e, "REMOTE_ADDR", r->client_ip);
+ apr_table_addn(e, "REMOTE_ADDR", r->useragent_ip);
apr_table_addn(e, "DOCUMENT_ROOT", ap_document_root(r)); /* Apache */
apr_table_setn(e, "REQUEST_SCHEME", ap_http_scheme(r));
apr_table_addn(e, "CONTEXT_PREFIX", ap_context_prefix(r));