mirror of
https://github.com/apache/httpd.git
synced 2025-11-11 02:42:23 +03:00
Further clarify the naming of the entity that directly connects to us by
calling that entity a client instead of a peer. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1214015 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -1208,7 +1208,7 @@ static const char *conn_var_fn(ap_expr_eval_ctx_t *ctx, const void *data)
|
||||
case 1:
|
||||
#if APR_HAVE_IPV6
|
||||
{
|
||||
apr_sockaddr_t *addr = c->peer_addr;
|
||||
apr_sockaddr_t *addr = c->client_addr;
|
||||
if (addr->family == AF_INET6
|
||||
&& !IN6_IS_ADDR_V4MAPPED((struct in6_addr *)addr->ipaddr_ptr))
|
||||
return "on";
|
||||
@@ -1221,7 +1221,7 @@ static const char *conn_var_fn(ap_expr_eval_ctx_t *ctx, const void *data)
|
||||
case 2:
|
||||
return c->log_id;
|
||||
case 3:
|
||||
return c->peer_ip;
|
||||
return c->client_ip;
|
||||
default:
|
||||
ap_assert(0);
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user