diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-02-09 02:56:21 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-02-09 02:56:21 +0000 |
commit | 72f1d372bbc5108660780180fd4d956ac64c9b84 (patch) | |
tree | 53a5655929175bbb287a611dc4778f5833bb17e6 | |
parent | bda86e8fe6eee631252ef716157a068631bce392 (diff) | |
download | pfsense-72f1d372bbc5108660780180fd4d956ac64c9b84.zip pfsense-72f1d372bbc5108660780180fd4d956ac64c9b84.tar.gz |
Do not show LAN interface when it is not present.
-rwxr-xr-x | usr/local/www/firewall_rules.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr/local/www/firewall_rules.php b/usr/local/www/firewall_rules.php index ac527b3..d9f060b 100755 --- a/usr/local/www/firewall_rules.php +++ b/usr/local/www/firewall_rules.php @@ -46,8 +46,10 @@ if ($_POST['if']) $iflist = array(); -if(have_ruleint_access("lan")) - $iflist['lan'] = "LAN"; +if($config['interfaces']['lan']) + if(have_ruleint_access("lan")) + $iflist['lan'] = "LAN"; + if(have_ruleint_access("wan")) $iflist['wan'] = "WAN"; |