diff options
author | Vince <github@darkain.com> | 2012-10-10 14:27:43 -0700 |
---|---|---|
committer | Vince <github@darkain.com> | 2012-10-10 14:27:43 -0700 |
commit | 0d249b9d1b59555bb97491b48743d8455ff3039f (patch) | |
tree | b219dc71fedb1d9191e9d7df8f2ee30f0bbe4765 | |
parent | a32fc3f11a09385eaf7709d99158363cdbf5e608 (diff) | |
download | pfsense-packages-0d249b9d1b59555bb97491b48743d8455ff3039f.tar.gz pfsense-packages-0d249b9d1b59555bb97491b48743d8455ff3039f.tar.bz2 pfsense-packages-0d249b9d1b59555bb97491b48743d8455ff3039f.zip |
Small cleanup for readability
Small cleanup for readability
-rwxr-xr-x | config/pf-blocker/pfblocker.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/pf-blocker/pfblocker.inc b/config/pf-blocker/pfblocker.inc index 53e2453e..58b93bb5 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<<(31-$bits))); + $network=long2ip( $ip_min_long & ((1<<32)-(1<<(32-$bits))-1) ); #print decbin($ip_min_long)."\n".$network."\n"; return $network . "/". $bits; } |