summaryrefslogtreecommitdiff
path: root/www-servers/apache/unsupported-command-20.patch
diff options
context:
space:
mode:
authorDan Goodliffe <dan.goodliffe@octal.co.uk>2023-01-11 15:27:54 +0000
committerDan Goodliffe <dan.goodliffe@octal.co.uk>2023-01-11 15:27:54 +0000
commit26d1e6b75912ef836f1c86db174870365eba34e9 (patch)
tree484a9e32395fb60b86e3036b0182f35269b2ef11 /www-servers/apache/unsupported-command-20.patch
parentRemove unrequired patches (diff)
downloadpatches-26d1e6b75912ef836f1c86db174870365eba34e9.tar.bz2
patches-26d1e6b75912ef836f1c86db174870365eba34e9.tar.xz
patches-26d1e6b75912ef836f1c86db174870365eba34e9.zip
Patch for Apache RemoteIPProxyProtocol: unsupported command 20
Diffstat (limited to 'www-servers/apache/unsupported-command-20.patch')
-rw-r--r--www-servers/apache/unsupported-command-20.patch14
1 files changed, 14 insertions, 0 deletions
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 */