summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2014-10-15 00:59:20 +0200
committerErmal <eri@pfsense.org>2014-10-15 00:59:20 +0200
commit4703c007ef8b5cef28ab9650b28ea807cc7611f6 (patch)
treea92bfc6e6dc13f11438d1a3b3d49850e186b68b6 /usr
parent664adf3845cf1df89769bb0ed5fc113048e0912e (diff)
downloadpfsense-4703c007ef8b5cef28ab9650b28ea807cc7611f6.zip
pfsense-4703c007ef8b5cef28ab9650b28ea807cc7611f6.tar.gz
Fixes #3727 Do not unset ondemand for ppp type interfaces since it is controlled here only for pppoe/l2tp
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/interfaces.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php
index 3a30328..a84e772 100644
--- a/usr/local/www/interfaces.php
+++ b/usr/local/www/interfaces.php
@@ -896,7 +896,8 @@ if ($_POST['apply']) {
unset($wancfg['pptp_username']);
unset($wancfg['pptp_password']);
unset($wancfg['provider']);
- unset($wancfg['ondemand']);
+ if ($wancfg['ipaddr'] != "ppp")
+ unset($wancfg['ondemand']);
unset($wancfg['timeout']);
if (empty($wancfg['pppoe']['pppoe-reset-type']))
unset($wancfg['pppoe']['pppoe-reset-type']);
OpenPOWER on IntegriCloud