summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan.goodliffe@octal.co.uk>2020-05-28 09:59:59 +0100
committerDan Goodliffe <dan.goodliffe@octal.co.uk>2020-05-28 09:59:59 +0100
commitbd3739880ffece447aadcd78ae91ac6b2f719d71 (patch)
tree738687404fc7c2f9121aeaf43348cc7c7ea6a9e5
parentBoost format c++20 fix (diff)
downloadpatches-bd3739880ffece447aadcd78ae91ac6b2f719d71.tar.bz2
patches-bd3739880ffece447aadcd78ae91ac6b2f719d71.tar.xz
patches-bd3739880ffece447aadcd78ae91ac6b2f719d71.zip
Patch to prevent remoteip error message about support command 20
-rw-r--r--www-servers/apache/apache-2.4.43-remoteip-local-ver_cmd.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/www-servers/apache/apache-2.4.43-remoteip-local-ver_cmd.patch b/www-servers/apache/apache-2.4.43-remoteip-local-ver_cmd.patch
new file mode 100644
index 0000000..51c6cc6
--- /dev/null
+++ b/www-servers/apache/apache-2.4.43-remoteip-local-ver_cmd.patch
@@ -0,0 +1,12 @@
+--- httpd/modules/metadata/mod_remoteip.c 2020/02/21 23:04:46 1874343
++++ httpd/modules/metadata/mod_remoteip.c 2020/02/21 23:19:07 1874344
+@@ -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 */