diff options
author | Renato Botelho <garga@pfSense.org> | 2014-02-18 07:38:20 -0300 |
---|---|---|
committer | Renato Botelho <garga@pfSense.org> | 2014-02-18 07:38:20 -0300 |
commit | 8f821cbcd9406a00546b7d0ffc04bfe1428cb7bc (patch) | |
tree | 827f4c852d3a6b0cf16ae390a97e293062f2b8f2 | |
parent | aecb7a792821445f5191fe8ccf3f474d39503ea4 (diff) | |
parent | 452eb31ed5b9e87a853697ad0aedf997683fe1da (diff) | |
download | pfsense-8f821cbcd9406a00546b7d0ffc04bfe1428cb7bc.zip pfsense-8f821cbcd9406a00546b7d0ffc04bfe1428cb7bc.tar.gz |
Merge pull request #891 from PiBa-NL/captive_disable
captive portal, don't generate rules for a disabled portal
-rw-r--r-- | etc/inc/filter.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 8f9d58a..428b131 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -2699,6 +2699,8 @@ EOD; */ if(is_array($config['captiveportal'])) { foreach ($config['captiveportal'] as $cpcfg) { + if(!isset($cpcfg['enable'])) + continue; $cpinterfaces = explode(",", $cpcfg['interface']); $cpiflist = array(); $cpiplist = array(); |