* modules/metadata/mod_remoteip.c (remoteip_process_v2_header): Set
conn_conf->client_addr and client_ip for the LOCAL case, matching
the v1 UNKNOWN path.
Assisted-by: Claude Sonnet 4.6 <noreply@anthropic.com>
GitHub: PR #685
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@
1936258 13f79535-47bb-0310-9956-
ffa450edef68
--- /dev/null
+ *) mod_remoteip: Fix crash with PROXY v2 LOCAL command and
+ RemoteIPProxyProtocol enabled. [Joe Orton]
switch (hdr->v2.ver_cmd & 0xF) {
case 0x00: /* LOCAL command */
/* keep local connection address for LOCAL */
+ conn_conf->client_addr = c->client_addr;
+ conn_conf->client_ip = c->client_ip;
return HDR_DONE;
case 0x01: /* PROXY command */
switch (hdr->v2.fam) {