summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal LUÇI <eri@pfsense.org>2014-11-28 12:14:30 +0100
committerErmal LUÇI <eri@pfsense.org>2014-11-28 12:14:30 +0100
commit6f1b89e9a88a168696e9c3195cc07473f61f5c4b (patch)
treead8f95737b2ba7398604241f9701fc03f6b98a48 /etc
parenta9163efee9171e7245861ad8a98f09b8ee3dee74 (diff)
downloadpfsense-6f1b89e9a88a168696e9c3195cc07473f61f5c4b.zip
pfsense-6f1b89e9a88a168696e9c3195cc07473f61f5c4b.tar.gz
Use function for determining if its ppp type
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/interfaces.inc8
1 files changed, 1 insertions, 7 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 9130719..ee79e71 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -2879,14 +2879,8 @@ function interface_configure($interface = "wan", $reloadall = false, $linkupeven
}
$interface_to_check = $realif;
- switch ($wancfg['ipaddr']) {
- case 'pppoe':
- case 'l2tp':
- case 'pptp':
- case 'ppp':
+ if (interface_isppp_type($interface))
$interface_to_check = $realhwif;
- break;
- }
/* Need to check that the interface exists or not in the case where its coming back from disabled state see #3270 */
if (in_array(substr($realif, 0, 3), array("gre", "gif")) || !does_interface_exist($interface_to_check))
OpenPOWER on IntegriCloud