aboutsummaryrefslogtreecommitdiffstats
path: root/config/pf-blocker/pfblocker.php
diff options
context:
space:
mode:
authormarcelloc <marcellocoutinho@gmail.com>2012-02-20 00:19:19 -0300
committermarcelloc <marcellocoutinho@gmail.com>2012-02-20 00:19:19 -0300
commitaa2f86a2732608ecf539490c87e50632c69a326b (patch)
treebeca3363f35e8d84f267ad8cebdf45409c680733 /config/pf-blocker/pfblocker.php
parent3f62692c31084b72ab32b431c3fb96c902451b4f (diff)
downloadpfsense-packages-aa2f86a2732608ecf539490c87e50632c69a326b.tar.gz
pfsense-packages-aa2f86a2732608ecf539490c87e50632c69a326b.tar.bz2
pfsense-packages-aa2f86a2732608ecf539490c87e50632c69a326b.zip
pfBlocker - include php memory limit set to 250Mb when amd64 is detected
Diffstat (limited to 'config/pf-blocker/pfblocker.php')
-rw-r--r--config/pf-blocker/pfblocker.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/config/pf-blocker/pfblocker.php b/config/pf-blocker/pfblocker.php
index dc9b58dd..cf0df89f 100644
--- a/config/pf-blocker/pfblocker.php
+++ b/config/pf-blocker/pfblocker.php
@@ -1,4 +1,8 @@
<?php
+$uname=posix_uname();
+if ($uname['machine']=='amd64')
+ ini_set('memory_limit', '250M');
+
function get_networks($pfb){
$file='/usr/local/pkg/pfblocker_aliases/'.$pfb.'.txt';
if (file_exists($file))