aboutsummaryrefslogtreecommitdiffstats
path: root/config/pf-blocker/pfblocker.inc
diff options
context:
space:
mode:
Diffstat (limited to 'config/pf-blocker/pfblocker.inc')
-rwxr-xr-xconfig/pf-blocker/pfblocker.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/pf-blocker/pfblocker.inc b/config/pf-blocker/pfblocker.inc
index 64171b01..53e2453e 100755
--- a/config/pf-blocker/pfblocker.inc
+++ b/config/pf-blocker/pfblocker.inc
@@ -70,7 +70,7 @@ function pfblocker_Range2CIDR($ip_min, $ip_max) {
if ($bits < 0)
return "";
#identify first ip on range network
- $network=long2ip($ip_min_long & (2<<32)-(2<<(32-$bits)));
+ $network=long2ip($ip_min_long & (2<<32)-(2<<(31-$bits)));
#print decbin($ip_min_long)."\n".$network."\n";
return $network . "/". $bits;
}