diff options
author | jim-p <jimp@pfsense.org> | 2011-02-10 10:25:32 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2011-02-10 10:58:16 -0500 |
commit | 93c2c1e620aa71b9ffd29deb0aeeda3028bb413a (patch) | |
tree | 848a91eaa9a982a4f054119f14f42e2514b3331f /usr/local/www/firewall_nat_edit.php | |
parent | 0fc6be3f54db706ccc7cce8b19b12f88dec171fa (diff) | |
download | pfsense-93c2c1e620aa71b9ffd29deb0aeeda3028bb413a.zip pfsense-93c2c1e620aa71b9ffd29deb0aeeda3028bb413a.tar.gz |
Generalize pppoe server enabled check and use it elsewhere in the GUI that needed fixed. Still needs changes in filter.inc - Ticket #1243
Diffstat (limited to 'usr/local/www/firewall_nat_edit.php')
-rwxr-xr-x | usr/local/www/firewall_nat_edit.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr/local/www/firewall_nat_edit.php b/usr/local/www/firewall_nat_edit.php index 125a34f..b62e257 100755 --- a/usr/local/www/firewall_nat_edit.php +++ b/usr/local/www/firewall_nat_edit.php @@ -478,9 +478,8 @@ include("fbegin.inc"); ?> if(have_ruleint_access("pptp")) $interfaces['pptp'] = "PPTP VPN"; - if ($config['pppoe']['mode'] == "server") - if(have_ruleint_access("pppoe")) - $interfaces['pppoe'] = "PPPoE VPN"; + if (is_pppoe_server_enabled() && have_ruleint_access("pppoe")) + $interfaces['pppoe'] = "PPPoE VPN"; /* add ipsec interfaces */ if (isset($config['ipsec']['enable']) || isset($config['ipsec']['mobileclients']['enable'])) |