]> git.pld-linux.org Git - packages/apache1-mod_rpaf.git/commitdiff
- update to 0.6
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 14 Jan 2008 10:27:14 +0000 (10:27 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    mod_rpaf_degtine.patch -> 1.2

mod_rpaf_degtine.patch

index f8f7fd1378e04d264bfa9341e4f77a767990c53c..91177088dbb30003bfdd065b995d9fce6a1231d2 100644 (file)
@@ -1,6 +1,5 @@
-diff -ur mod_rpaf-0.5/mod_rpaf-2.0.c libapache-mod-rpaf-0.5/mod_rpaf-2.0.c
---- mod_rpaf-0.5/mod_rpaf-2.0.c        2004-03-17 15:47:30.000000000 +0000
-+++ libapache-mod-rpaf-0.5/mod_rpaf-2.0.c      2006-06-16 18:04:05.000000000 +0100
+--- mod_rpaf-0.6/mod_rpaf-2.0.c~       2008-01-14 12:22:30.000000000 +0200
++++ mod_rpaf-0.6/mod_rpaf-2.0.c        2008-01-14 12:24:24.311847900 +0200
 @@ -130,6 +130,16 @@
      return 0;
  }
@@ -18,18 +17,17 @@ diff -ur mod_rpaf-0.5/mod_rpaf-2.0.c libapache-mod-rpaf-0.5/mod_rpaf-2.0.c
  static int change_remote_ip(request_rec *r) {
      const char *fwdvalue;
      char *val;
-@@ -147,7 +157,7 @@
-                 if (*fwdvalue != '\0')
-                     ++fwdvalue;
-             }
+@@ -193,7 +193,7 @@
+             rcr->old_ip = apr_pstrdup(r->connection->pool, r->connection->remote_ip);
+             rcr->r = r;
+             apr_pool_cleanup_register(r->pool, (void *)rcr, rpaf_cleanup, apr_pool_cleanup_null);
 -            r->connection->remote_ip = apr_pstrdup(r->connection->pool, ((char **)arr->elts)[((arr->nelts)-1)]);
 +            r->connection->remote_ip = apr_pstrdup(r->connection->pool, last_not_in_array(arr, cfg->proxy_ips));
-             r->connection->remote_addr->sa.sin.sin_addr.s_addr = inet_addr(r->connection->remote_ip);
+             r->connection->remote_addr->sa.sin.sin_addr.s_addr = apr_inet_addr(r->connection->remote_ip);
              if (cfg->sethostname) {
                  const char *hostvalue;
-diff -ur mod_rpaf-0.5/mod_rpaf.c libapache-mod-rpaf-0.5/mod_rpaf.c
---- mod_rpaf-0.5/mod_rpaf.c    2004-03-17 15:47:30.000000000 +0000
-+++ libapache-mod-rpaf-0.5/mod_rpaf.c  2006-06-16 18:04:38.000000000 +0100
+--- mod_rpaf-0.6/mod_rpaf.c~   2008-01-14 12:25:04.000000000 +0200
++++ mod_rpaf-0.6/mod_rpaf.c    2008-01-14 12:25:28.975575680 +0200
 @@ -130,6 +130,16 @@
      return 0;
  }
@@ -47,13 +45,12 @@ diff -ur mod_rpaf-0.5/mod_rpaf.c libapache-mod-rpaf-0.5/mod_rpaf.c
  static int change_remote_ip(request_rec *r) {
      const char *fwdvalue;
      char *val;
-@@ -147,7 +157,7 @@
-                 if (*fwdvalue != '\0')
-                     ++fwdvalue;
-             }
+@@ -192,7 +192,7 @@
+             rcr->old_ip = ap_pstrdup(r->connection->pool, r->connection->remote_ip);
+             rcr->r = r;
+             ap_register_cleanup(r->pool, (void *)rcr, rpaf_cleanup, ap_null_cleanup);
 -            r->connection->remote_ip = ap_pstrdup(r->connection->pool, ((char **)arr->elts)[((arr->nelts)-1)]);
 +            r->connection->remote_ip = ap_pstrdup(r->connection->pool, last_not_in_array(arr, cfg->proxy_ips));
              r->connection->remote_addr.sin_addr.s_addr = inet_addr(r->connection->remote_ip);
              if (cfg->sethostname) {
                  const char *hostvalue;
-
This page took 0.060367 seconds and 4 git commands to generate.