slackbuilds_ponce/network/mod_bw/apache24.patch
Willy Sudiarto Raharjo 952c093f0f network/mod_bw: Added (apache module).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2015-10-03 08:57:50 +07:00

29 lines
989 B
Diff

--- 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;