mirror of
https://github.com/apache/httpd.git
synced 2025-08-13 14:40:20 +00:00
updates to changed interfaces to apr_set_port(), apr_get_port(),
apr_set_ipaddr(), and apr_get_ipaddr() git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87050 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@ -167,6 +167,7 @@ AP_DECLARE(void) ap_add_common_vars(request_rec *r)
|
||||
apr_table_entry_t *hdrs = (apr_table_entry_t *) hdrs_arr->elts;
|
||||
int i;
|
||||
apr_port_t rport;
|
||||
apr_sockaddr_t *remotesa;
|
||||
|
||||
/* use a temporary apr_table_t which we'll overlap onto
|
||||
* r->subprocess_env later
|
||||
@ -257,7 +258,8 @@ AP_DECLARE(void) ap_add_common_vars(request_rec *r)
|
||||
apr_table_addn(e, "SERVER_ADMIN", s->server_admin); /* Apache */
|
||||
apr_table_addn(e, "SCRIPT_FILENAME", r->filename); /* Apache */
|
||||
|
||||
apr_get_port(&rport, APR_REMOTE, c->client_socket);
|
||||
apr_get_sockaddr(&remotesa, APR_REMOTE, c->client_socket);
|
||||
apr_get_port(&rport, remotesa);
|
||||
apr_table_addn(e, "REMOTE_PORT", apr_psprintf(r->pool, "%d", rport));
|
||||
|
||||
if (r->user) {
|
||||
|
Reference in New Issue
Block a user