You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2021/01/22 06:54:11 UTC

[Bug 63893] Bogus warning "unsupported command 20"

https://bz.apache.org/bugzilla/show_bug.cgi?id=63893

--- Comment #7 from Avinash S <av...@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