summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-09-17 19:04:20 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-09-17 19:04:20 -0400
commitde75260903b378008292a1d75984a44580e26b26 (patch)
tree52fa6ed346f3852b3b325634adeb44b6d73714dc
parent869000742d0efa0f8b5e0eee08f1a23456534c4c (diff)
downloadpfsense-de75260903b378008292a1d75984a44580e26b26.zip
pfsense-de75260903b378008292a1d75984a44580e26b26.tar.gz
Do not process IPFW rules if captive portal is disabled.
-rw-r--r--etc/inc/captiveportal.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc
index 8ee9e16..fbe9e57 100644
--- a/etc/inc/captiveportal.inc
+++ b/etc/inc/captiveportal.inc
@@ -962,7 +962,8 @@ function captiveportal_write_elements() {
*/
function captiveportal_get_next_ipfw_ruleno($rulenos_start = 2000, $rulenos_range_max = 49899) {
global $config, $g;
-
+ if(!isset($config['captiveportal']['enable']))
+ return;
$ruleno = 0;
if (file_exists("{$g['vardb_path']}/captiveportal.nextrule"))
$ruleno = intval(file_get_contents("{$g['vardb_path']}/captiveportal.nextrule"));
OpenPOWER on IntegriCloud