aboutsummaryrefslogtreecommitdiffstats
path: root/config/pf-blocker/pfblocker.php
diff options
context:
space:
mode:
authormarcelloc <marcellocoutinho@gmail.com>2012-06-04 16:28:05 -0300
committermarcelloc <marcellocoutinho@gmail.com>2012-06-04 16:28:05 -0300
commit77d63137cfaafe5786ca958833558dcf0837a145 (patch)
treee8867cb014834bf8dccef552ebfa3648d226c862 /config/pf-blocker/pfblocker.php
parentb64ea870fd0264cbc2d2c61aa0b8ada2699450d2 (diff)
downloadpfsense-packages-77d63137cfaafe5786ca958833558dcf0837a145.tar.gz
pfsense-packages-77d63137cfaafe5786ca958833558dcf0837a145.tar.bz2
pfsense-packages-77d63137cfaafe5786ca958833558dcf0837a145.zip
pfblocker - Include boot process check
Diffstat (limited to 'config/pf-blocker/pfblocker.php')
-rw-r--r--config/pf-blocker/pfblocker.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/config/pf-blocker/pfblocker.php b/config/pf-blocker/pfblocker.php
index af489b81..17fb10e7 100644
--- a/config/pf-blocker/pfblocker.php
+++ b/config/pf-blocker/pfblocker.php
@@ -10,11 +10,11 @@ function get_networks($pfb){
print $return;
}
-# to be uncomented when this packages gets stable state
-#if($_SERVER['REMOTE_ADDR']== '127.0.0.1'){
-if (preg_match("/(\w+)/",$_REQUEST['pfb'],$matches))
- get_networks($matches[1]);
-#}
+if($_SERVER['REMOTE_ADDR']== '127.0.0.1'){
+ if (preg_match("/(\w+)/",$_REQUEST['pfb'],$matches)){
+ get_networks($matches[1]);
+ }
+ }
if ($argv[1]=='uc')
pfblocker_get_countries();
if ($argv[1]=='cron'){
@@ -50,7 +50,7 @@ if ($argv[1]=='cron'){
if ($updates > 0){
include "/usr/local/pkg/pfblocker.inc";
- sync_package_pfblocker();
+ sync_package_pfblocker("cron");
}
}