summaryrefslogtreecommitdiffstats
path: root/mod_bw-httpd24.patch
blob: d49d31038b476aa733285913646cef4d43825da3 (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
32
33
34
35
36
37
38
39
40
41
42
diff -up mod_bw/mod_bw.c.httpd24 mod_bw/mod_bw.c
--- mod_bw/mod_bw.c.httpd24	2012-04-10 11:57:06.092958430 +0200
+++ mod_bw/mod_bw.c	2012-04-10 11:59:51.832838191 +0200
@@ -519,10 +519,8 @@ static long get_bw_rate(request_rec * r,
             return e[i].rate;
 
         case T_IP:
-            if (apr_ipsubnet_test(e[i].x.ip, r->connection->remote_addr)) {
-                return e[i].rate;
-            }
-            break;
+            return e[i].rate;
+
         case T_HOST:
             if (!gothost) {
                 int remotehost_is_ip;
@@ -608,10 +606,8 @@ static int get_maxconn(request_rec * r,
             return e[i].max;
 
         case T_IP:
-            if (apr_ipsubnet_test(e[i].x.ip, r->connection->remote_addr)) {
-                return e[i].max;
-            }
-            break;
+            return e[i].max;
+
         case T_HOST:
             if (!gothost) {
                 int remotehost_is_ip;
@@ -659,10 +655,8 @@ static int get_sid(request_rec * r, apr_
             return e[i].sid;
 
         case T_IP:
-            if (apr_ipsubnet_test(e[i].x.ip, r->connection->remote_addr)) {
-                return e[i].sid;
-            }
-            break;
+            return e[i].sid;
+
         case T_HOST:
             if (!gothost) {
                 int remotehost_is_ip;