summaryrefslogtreecommitdiff
path: root/network/mod_bw/apache24.patch
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-10-03 08:57:50 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-10-03 08:57:50 +0700
commit952c093f0fd8113e5f3859e89d92fcba5579ed16 (patch)
tree57e5ca8d133aa9095f823b78d74fe3bf6cec4a7a /network/mod_bw/apache24.patch
parent4cd63afd3e2ca8d60ff182bb542d7ce28aca18d0 (diff)
downloadslackbuilds-952c093f0fd8113e5f3859e89d92fcba5579ed16.tar.gz
network/mod_bw: Added (apache module).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
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;