Skip to content

Commit

Permalink
Merge pull request #39 from BBcan177/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
rbgarga committed Dec 28, 2015
2 parents 27cda83 + 313f3a5 commit f42ad7d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion net/pfSense-pkg-pfBlockerNG/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# $FreeBSD$

PORTNAME= pfSense-pkg-pfBlockerNG
PORTVERSION= 2.0.5
PORTVERSION= 2.0.6
CATEGORIES= net
MASTER_SITES= # empty
DISTFILES= # empty
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
]]>
</copyright>
<name>pfblockerng</name>
<version>2.0.5</version>
<version>2.0.6</version>
<title>Firewall/pfBlockerNG</title>
<include_file>/usr/local/pkg/pfblockerng/pfblockerng.inc</include_file>
<addedit_string>pfBlockerNG: Save General Settings</addedit_string>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3452,7 +3452,7 @@ function sync_package_pfblockerng($cron='') {
if (strpos($line, '-') !== FALSE) {
$matches = explode('-', $line);
if (count($matches) == 2) {
$a_cidr = ip_range_to_subnet_array_temp($matches[0],$matches[1]);
$a_cidr = ip_range_to_subnet_array($matches[0],$matches[1]);
if (!empty($a_cidr)) {
foreach ($a_cidr as $cidr) {
$cidr = sanitize_ipaddr($cidr, $custom);
Expand Down Expand Up @@ -3495,7 +3495,7 @@ function sync_package_pfblockerng($cron='') {
if (strpos($oline, '-') !== FALSE) {
// Network range 192.168.0.0-192.168.0.254
if (preg_match($pfb['range'], $oline, $matches)) {
$a_cidr = ip_range_to_subnet_array_temp($matches[1], $matches[2]);
$a_cidr = ip_range_to_subnet_array($matches[1], $matches[2]);
if (!empty($a_cidr)) {
foreach ($a_cidr as $cidr) {
$cidr = sanitize_ipaddr($cidr, $custom);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
Domain Name (DNSBL) blocking via Unbound DNS Resolver.]]></descr>
<category>Security</category>
<pkginfolink>https://forum.pfsense.org/index.php?topic=102470.0</pkginfolink>
<version>2.0.5</version>
<version>2.0.6</version>
<status>RELEASE</status>
<required_version>2.3</required_version>
<maintainer>BBCan177@gmail.com</maintainer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ function pfblockerng_uc_countries() {
while (($cc = @fgetcsv($handle)) !== FALSE) {
$cc_key = $cc[4];
$country_key = $cc[5];
$a_cidr = implode(',', ip_range_to_subnet_array_temp($cc[0], $cc[1]));
$a_cidr = implode(',', ip_range_to_subnet_array($cc[0], $cc[1]));
foreach ($cont_array as $key => $iso) {
if (strpos($iso['iso'], $cc_key) !== FALSE) {
$cont_array[$key][$cc_key][$iptype] .= "{$a_cidr},";
Expand Down

0 comments on commit f42ad7d

Please sign in to comment.