summaryrefslogtreecommitdiffstats
path: root/etc/inc/captiveportal.inc
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2008-06-18 21:25:22 +0000
committerErmal Luçi <eri@pfsense.org>2008-06-18 21:25:22 +0000
commitb16c077d7cd24972719980bb09421e22037d1b0d (patch)
tree70297635fc2fda933bac08a18de99ae62de87afa /etc/inc/captiveportal.inc
parent33eeceab852001fa88bb6a81aad6b770a1dadf58 (diff)
downloadpfsense-b16c077d7cd24972719980bb09421e22037d1b0d.zip
pfsense-b16c077d7cd24972719980bb09421e22037d1b0d.tar.gz
Interface list improvements.
Diffstat (limited to 'etc/inc/captiveportal.inc')
-rw-r--r--etc/inc/captiveportal.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc
index 9359662..4b08cec 100644
--- a/etc/inc/captiveportal.inc
+++ b/etc/inc/captiveportal.inc
@@ -320,10 +320,10 @@ function captiveportal_rules_generate() {
/* allow nat redirects to work see
http://cvstrac.pfsense.com/tktview?tn=651
*/
- $iflist = array("lan" => "LAN", "wan" => "WAN");
- $captive_portal_interface = strtoupper($cpifn);
- for ($i = 1; isset($config['interfaces']['opt' . $i]); $i++)
- $iflist['opt' . $i] = "OPT{$i}";
+
+ /* if list */
+ $iflist = get_configured_interface_list();
+
foreach ($iflist as $ifent => $ifname) {
if($captive_portal_interface == strtoupper($ifname))
continue;
OpenPOWER on IntegriCloud