summaryrefslogtreecommitdiff
path: root/network/mod_bw/apache24.patch
diff options
context:
space:
mode:
Diffstat (limited to 'network/mod_bw/apache24.patch')
-rw-r--r--network/mod_bw/apache24.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/network/mod_bw/apache24.patch b/network/mod_bw/apache24.patch
new file mode 100644
index 0000000000..7554aea1d3
--- /dev/null
+++ b/network/mod_bw/apache24.patch
@@ -0,0 +1,29 @@
+--- mod_bw.c.NEW 2014-10-06 12:14:47.963722589 +1100
++++ mod_bw.c 2014-10-06 12:15:44.767721163 +1100
+@@ -472,7 +472,7 @@
+ return e[i].rate;
+
+ case T_IP:
+- if (apr_ipsubnet_test(e[i].x.ip, r->connection->remote_addr)) {
++ if (apr_ipsubnet_test(e[i].x.ip, r->connection->client_addr)) {
+ return e[i].rate;
+ }
+ break;
+@@ -555,7 +555,7 @@
+ return e[i].max;
+
+ case T_IP:
+- if (apr_ipsubnet_test(e[i].x.ip, r->connection->remote_addr)) {
++ if (apr_ipsubnet_test(e[i].x.ip, r->connection->client_addr)) {
+ return e[i].max;
+ }
+ break;
+@@ -600,7 +600,7 @@
+ return e[i].sid;
+
+ case T_IP:
+- if (apr_ipsubnet_test(e[i].x.ip, r->connection->remote_addr)) {
++ if (apr_ipsubnet_test(e[i].x.ip, r->connection->client_addr)) {
+ return e[i].sid;
+ }
+ break;