summaryrefslogtreecommitdiffstats
path: root/SOURCES/mod_removeip.patch
blob: 93e1de97257c857071cc6795f0ebde620faba837 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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;