summaryrefslogtreecommitdiff
path: root/www-servers/apache/apache-2.4.43-remoteip-local-ver_cmd.patch
blob: 51c6cc623844ef98a3428a50afd87f7f6498533a (plain)
1
2
3
4
5
6
7
8
9
10
11
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 */