diff options
author | Ermal Luçi <eri@pfsense.org> | 2008-06-18 21:25:22 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2008-06-18 21:25:22 +0000 |
commit | b16c077d7cd24972719980bb09421e22037d1b0d (patch) | |
tree | 70297635fc2fda933bac08a18de99ae62de87afa /etc | |
parent | 33eeceab852001fa88bb6a81aad6b770a1dadf58 (diff) | |
download | pfsense-b16c077d7cd24972719980bb09421e22037d1b0d.zip pfsense-b16c077d7cd24972719980bb09421e22037d1b0d.tar.gz |
Interface list improvements.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/captiveportal.inc | 8 |
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; |