https://bz.apache.org/bugzilla/show_bug.cgi?id=63893
--- Comment #7 from Avinash S <avinashsnie@gmail.com> ---
This looks to be not working still.
Since, we are checking for
if (!conn_config->client_addr) {
ap_log_rerror(APLOG_MARK, APLOG_WARNING, 0, r, APLOGNO(03496)
"RemoteIPProxyProtocol data is missing, but required!
Aborting request.");
return HTTP_BAD_REQUEST;
}
We still return 400 Bad requests.
We may need to do something like below under switch statement
case 0x00: /* LOCAL command */
case 0x01: /* PROXY command */
switch (hdr->v2.fam) {
case 0x11: /* TCPv4 */
ret = apr_sockaddr_info_get(&conn_conf->client_addr, NULL,
APR_INET,
ntohs(hdr->v2.addr.ip4.src_port),
0, c->pool
And go ahead parsing client info even for LOCAL and so that
conn_config->client_addr is populated.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
--- Comment #7 from Avinash S <avinashsnie@gmail.com> ---
This looks to be not working still.
Since, we are checking for
if (!conn_config->client_addr) {
ap_log_rerror(APLOG_MARK, APLOG_WARNING, 0, r, APLOGNO(03496)
"RemoteIPProxyProtocol data is missing, but required!
Aborting request.");
return HTTP_BAD_REQUEST;
}
We still return 400 Bad requests.
We may need to do something like below under switch statement
case 0x00: /* LOCAL command */
case 0x01: /* PROXY command */
switch (hdr->v2.fam) {
case 0x11: /* TCPv4 */
ret = apr_sockaddr_info_get(&conn_conf->client_addr, NULL,
APR_INET,
ntohs(hdr->v2.addr.ip4.src_port),
0, c->pool
And go ahead parsing client info even for LOCAL and so that
conn_config->client_addr is populated.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org