diff options
author | Ermal <eri@pfsense.org> | 2014-10-15 00:59:20 +0200 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2014-10-15 00:59:20 +0200 |
commit | 4703c007ef8b5cef28ab9650b28ea807cc7611f6 (patch) | |
tree | a92bfc6e6dc13f11438d1a3b3d49850e186b68b6 /usr/local | |
parent | 664adf3845cf1df89769bb0ed5fc113048e0912e (diff) | |
download | pfsense-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/local')
-rw-r--r-- | usr/local/www/interfaces.php | 3 |
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']); |