summaryrefslogtreecommitdiffstats
path: root/mod_bw-httpd24.patch
blob: 0d9e8c3a8359842367f726fb135169475fcde504 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
diff --git a/mod_bw.c b/mod_bw.c
index a49caf8..8b75973 100644
--- a/mod_bw.c
+++ b/mod_bw.c
@@ -519,7 +519,7 @@ static long get_bw_rate(request_rec * r, apr_array_header_t * a)
             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->useragent_addr)) {
                 return e[i].rate;
             }
             break;
@@ -608,7 +608,7 @@ static int get_maxconn(request_rec * r, apr_array_header_t * a)
             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->useragent_addr)) {
                 return e[i].max;
             }
             break;
@@ -659,7 +659,7 @@ static int get_sid(request_rec * r, apr_array_header_t * a)
             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->useragent_addr)) {
                 return e[i].sid;
             }
             break;