summaryrefslogtreecommitdiffstats
path: root/SOURCES/mod_removeip.patch
diff options
context:
space:
mode:
Diffstat (limited to 'SOURCES/mod_removeip.patch')
-rw-r--r--SOURCES/mod_removeip.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/SOURCES/mod_removeip.patch b/SOURCES/mod_removeip.patch
new file mode 100644
index 0000000..93e1de9
--- /dev/null
+++ b/SOURCES/mod_removeip.patch
@@ -0,0 +1,21 @@
+diff -Nadur mod_removeip/libapache-mod-removeip/debian/trunk/apache2.0/mod_removeip.c mod_removeip-1.0b/apache2.0/mod_removeip.c
+--- mod_removeip/libapache-mod-removeip/debian/trunk/apache2.0/mod_removeip.c 2006-08-12 22:08:28.000000000 +0200
++++ mod_removeip-1.0b/apache2.0/mod_removeip.c 2006-08-15 23:11:51.249033896 +0200
+@@ -32,8 +32,6 @@
+ }
+
+ static int change_remote_ip(request_rec *r) {
+- const char *fwdvalue;
+- char *val;
+ removeip_server_cfg *cfg = (removeip_server_cfg *)ap_get_module_config(r->server->module_config,
+ &removeip_module);
+
+@@ -40,7 +40,7 @@
+ if (!cfg->enable)
+ return DECLINED;
+
+- r->connection->remote_ip = apr_pstrdup(r->connection->pool, "localhost");
++ r->connection->remote_ip = apr_pstrdup(r->connection->pool, "127.0.0.1");
+ r->connection->remote_addr->sa.sin.sin_addr.s_addr = inet_addr("127.0.0.1");
+
+ return DECLINED;