mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
Introduce a per connection "peer_ip" and a per request "client_ip" to
distinguish between the raw IP address of the connection and the effective IP address of the request. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1206291 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -247,7 +247,7 @@ static apr_status_t ajp_marshal_into_msgb(ajp_msg_t *msg,
|
||||
ajp_msg_append_uint8(msg, (apr_byte_t) method) ||
|
||||
ajp_msg_append_string(msg, r->protocol) ||
|
||||
ajp_msg_append_string(msg, uri->path) ||
|
||||
ajp_msg_append_string(msg, r->remote_ip) ||
|
||||
ajp_msg_append_string(msg, r->client_ip) ||
|
||||
ajp_msg_append_string(msg, remote_host) ||
|
||||
ajp_msg_append_string(msg, ap_get_server_name(r)) ||
|
||||
ajp_msg_append_uint16(msg, (apr_uint16_t)r->connection->local_addr->port) ||
|
||||
@@ -413,7 +413,7 @@ static apr_status_t ajp_marshal_into_msgb(ajp_msg_t *msg,
|
||||
*/
|
||||
{
|
||||
const char *key = SC_A_REQ_REMOTE_PORT;
|
||||
char *val = apr_itoa(r->pool, r->remote_addr->port);
|
||||
char *val = apr_itoa(r->pool, r->client_addr->port);
|
||||
if (ajp_msg_append_uint8(msg, SC_A_REQ_ATTRIBUTE) ||
|
||||
ajp_msg_append_string(msg, key) ||
|
||||
ajp_msg_append_string(msg, val)) {
|
||||
|
Reference in New Issue
Block a user