diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-09-17 19:03:47 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-09-17 19:03:47 -0400 |
commit | 08b6c550ac4a8668d65f99a08009346f4c1a113a (patch) | |
tree | 249e836f3a4bac9657b8825fe11b789c8bddcbcb /etc/inc | |
parent | 837b2b6be16ac427ec6ca6e8dbdb552599ba0ecb (diff) | |
download | pfsense-08b6c550ac4a8668d65f99a08009346f4c1a113a.zip pfsense-08b6c550ac4a8668d65f99a08009346f4c1a113a.tar.gz |
Do not process IPFW rules if captive portal is disabled.
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/captiveportal.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc index b49db26..c85d4d7 100644 --- a/etc/inc/captiveportal.inc +++ b/etc/inc/captiveportal.inc @@ -997,7 +997,9 @@ function captiveportal_write_elements() { */ function captiveportal_get_next_ipfw_ruleno($rulenos_start = 10000, $rulenos_range_max = 9899) { - + global $config; + if(!isset($config['captiveportal']['enable'])) + return; $fwrules = ""; $matches = ""; exec("/sbin/ipfw show", $fwrules); |