summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_nat_1to1_edit.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2011-02-10 10:25:32 -0500
committerjim-p <jimp@pfsense.org>2011-02-10 10:58:16 -0500
commit93c2c1e620aa71b9ffd29deb0aeeda3028bb413a (patch)
tree848a91eaa9a982a4f054119f14f42e2514b3331f /usr/local/www/firewall_nat_1to1_edit.php
parent0fc6be3f54db706ccc7cce8b19b12f88dec171fa (diff)
downloadpfsense-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_1to1_edit.php')
-rwxr-xr-xusr/local/www/firewall_nat_1to1_edit.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr/local/www/firewall_nat_1to1_edit.php b/usr/local/www/firewall_nat_1to1_edit.php
index b8956af..135dd99 100755
--- a/usr/local/www/firewall_nat_1to1_edit.php
+++ b/usr/local/www/firewall_nat_1to1_edit.php
@@ -284,9 +284,8 @@ function typesel_change() {
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']))
OpenPOWER on IntegriCloud