]> granicus.if.org Git - apache/commitdiff
*) mod_remoteip: make proxy-protocol work on HTTP/2 connections.
authorDaniel Ruggeri <druggeri@apache.org>
Wed, 18 Apr 2018 22:36:14 +0000 (22:36 +0000)
committerDaniel Ruggeri <druggeri@apache.org>
Wed, 18 Apr 2018 22:36:14 +0000 (22:36 +0000)
     trunk patch: http://svn.apache.org/r1827196
     2.4.x patch: svn merge -c 1827196 ^/httpd/httpd/trunk .
     +1: icing, ylavic, jim

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1829486 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
STATUS
modules/metadata/mod_remoteip.c

diff --git a/CHANGES b/CHANGES
index 5ac188f94e821ae1031bc4ba6aa8af7e00bf27b5..791f4b95168f2685c2a428dc8fc202195cc0ab0d 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,10 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache 2.4.34
 
+  *) mod_remoteip: make proxy-protocol work on slave connections, e.g. in HTTP/2
+     requests. See also https://github.com/roadrunner2/mod-proxy-protocol/issues/6
+     [Stefan Eissing]
+
   *) mod_ssl: Fix merging of proxy SSL context outside <Proxy> sections,
      regression introduced in 2.4.30. PR 62232. [Rainer Jung, Yann Ylavic]
 
diff --git a/STATUS b/STATUS
index 1673530dc1b4b25311834bc6b2c8491d8f3f3946..16cd5c2af1ee6ba776d4d702f5eea87e43577897 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -138,11 +138,6 @@ PATCHES PROPOSED TO BACKPORT FROM TRUNK:
                  'no_ocsp_for_cert_ok', which is undocumented.
                  Adding some new paramters also deserves a CHANGES entry.
 
-  *) mod_remoteip: make proxy-protocol work on HTTP/2 connections.
-     trunk patch: http://svn.apache.org/r1827196
-     2.4.x patch: svn merge -c 1827196 ^/httpd/httpd/trunk .
-     +1: icing, ylavic, jim
-
   *) core: Add <IfFile>, <IfDirective>, <IfSection>
      trunk patch: http://svn.apache.org/r1769718
                   http://svn.apache.org/r1785943
index 4101b4ebdc36a9b21e90eb3970eef9f016f725c8..e67ff3655f376b7590a42d5f9ab26e012ef42d8e 100644 (file)
@@ -887,8 +887,13 @@ static int remoteip_hook_pre_connection(conn_rec *c, void *csd)
     remoteip_conn_config_t *conn_conf;
     int i;
 
-    /* Do not attempt to manipulate slave connections */
+    /* Establish master config in slave connections, so that request processing
+     * finds it. */
     if (c->master != NULL) {
+        conn_conf = ap_get_module_config(c->master->conn_config, &remoteip_module);
+        if (conn_conf) {
+            ap_set_module_config(c->conn_config, &remoteip_module, conn_conf);
+        }
         return DECLINED;
     }