From 26d1e6b75912ef836f1c86db174870365eba34e9 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Wed, 11 Jan 2023 15:27:54 +0000 Subject: Patch for Apache RemoteIPProxyProtocol: unsupported command 20 --- www-servers/apache/unsupported-command-20.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 www-servers/apache/unsupported-command-20.patch diff --git a/www-servers/apache/unsupported-command-20.patch b/www-servers/apache/unsupported-command-20.patch new file mode 100644 index 0000000..dfc201c --- /dev/null +++ b/www-servers/apache/unsupported-command-20.patch @@ -0,0 +1,14 @@ +Index: modules/metadata/mod_remoteip.c +=================================================================== +--- a/modules/metadata/mod_remoteip.c (revision 1873412) ++++ b/modules/metadata/mod_remoteip.c (working copy) +@@ -948,6 +948,9 @@ + apr_status_t ret; + + switch (hdr->v2.ver_cmd & 0xF) { ++ case 0x00: /* LOCAL command */ ++ /* keep local connection address for LOCAL */ ++ return HDR_DONE; + case 0x01: /* PROXY command */ + switch (hdr->v2.fam) { + case 0x11: /* TCPv4 */ -- cgit v1.2.3